Object.seal( obj 对象变量 ) 示例:var obj = {a:1};Object.seal(obj);obj.a = 6;obj.b = 2;console.log(obj.a, obj.b); 结果: obj.a = 6 obj.b = undefined