- Object.seal()方法可以保护对象不被篡改,不可扩展且其已有成员configurable特性设置为false,这就意味这属性和方法不能被删除
- configurable一旦被设置为false(不可配置),就再也不能设置为可配置了
- Object.isSealed()方法可以判断对象是否是被密封过
转载于:https://my.oschina.net/u/3407699/blog/3021067
转载于:https://my.oschina.net/u/3407699/blog/3021067