任天堂「今後C++は捨てJavaScriptで開発していく」 (887レス)
前次1-
抽出解除 レス栞

105
(1): 2013/03/21(木)20:57 AAS
>>77
だからObject.seal()の機能書いてみ。
何をしてくれるのかわかってないだろw
111
(8): 2013/03/21(木)22:06 AAS
>>105
var a = {maxLength:0};
var b = Object.seal({maxLength:0});
var hoge0 = function hoge(x) {"use strict"; x.maxLength = 100; return x.maxLength};
var hoge1 = function hoge(x) {"use strict"; x.maxlength = 100; return x.maxlength};
hoge0(a) // => 100
hoge1(a) // => 100
hoge0(b) // => 100
hoge1(b) // TypeError: Can't add property maxlength, object is not extensible
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 1.765s*