比如:var a = Array(); 和 var aa = new Array();var b = Object(); 和 var bb = new Object();
1 回答
蝴蝶刀刀
TA贡献1801条经验 获得超8个赞
根据EMACScript
标准:
The Array constructor is the %Array% intrinsic object and the initial value of the Array property of the global object. When called as a constructor it creates and initializes a new exotic Array object. When Array is called as a function rather than as a constructor, it also creates and initializes a new Array object. Thus the function call Array(…) is equivalent to the object creation expression new Array(…) with the same arguments.
调用Array()
和new Array()
是等同的。
添加回答
举报
0/150
提交
取消