1. 程式人生 > >js中的Object.seal()與Object.freeze()

js中的Object.seal()與Object.freeze()

dev per fine doc ref ble efi def sea

有待添加,先列出參考文檔。關鍵字:seal, freeze, configurable of property。

參考文檔:

(1)https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty

(2)https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal

(3)https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze

js中的Object.seal()與Object.freeze()