const _objectFreeze = object => { // 补全代码 for (let key in object) { Object.defineProperty(object, key, { configurable: false, writable: false }) } Object.preventExtensions(object); return object; } Object.freeze()的功能即我们需要做的功能:防止扩展使现有的属性...