JavaScript オブジェクト 新しいページはコチラ
提供: yonewiki
(→.isFrozen 関数) |
(→.freeze 関数) |
||
1,444行: | 1,444行: | ||
} | } | ||
}; | }; | ||
+ | Object.defineProperty(obj, "x", { | ||
+ | writable: true, | ||
+ | enumerable: true, | ||
+ | configurable: true | ||
+ | }); | ||
+ | |||
function objFunc(){ | function objFunc(){ | ||
1,464行: | 1,470行: | ||
obj.x = { | obj.x = { | ||
value:"data2", | value:"data2", | ||
− | |||
− | |||
− | |||
}; | }; | ||