阅读背景:

如果对象被冻结后添加新属性,则抛出错误。

来源:互联网 

Using JavaScript/Node.js, is it possible to throw an error if an object is modified after being frozen? I want to put an immutable property on an object and also prevent the object from being reassigned.Using JavaScript/Node.js, is it possible to thr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: