freeze

作者: peerben | 来源:发表于2019-07-09 08:11 被阅读0次

    复习一下

    The Object.freeze function does the following:

    Makes the object non-extensible, so that new properties cannot be added to it.
    Sets the configurable attribute to false for all properties of the object. When - configurable is false, the property attributes cannot be changed and the property cannot be deleted.
    Sets the writable attribute to false for all data properties of the object. When writable is false, the data property value cannot be changed.

    相关文章

      网友评论

          本文标题:freeze

          本文链接:https://www.haomeiwen.com/subject/bpktkctx.html