这种方法不允许你建立你的大脑查找表。
This method does not allow you to build that lookup table in your brain.
不过,由于受到浏览器的限制,该方法不允许跨域通信。
This approach, however, does not allow cross-domain communication because of restrictions imposed by the browser.
如果可以重写类的话,则可以重写它的方法的行为,因此您最安全的选择就是不允许将类子类化。
If the class can be overridden, its methods' behaviors can be overridden as well, so your safest bet is to disallow subclassing.
应用推荐