扫码一下
查看教程更方便
constructor 属性返回对 array 对象属性创建的函数。
语法如下:
array.constructor
返回创建此对象实例的函数。
所有主流浏览器都支持 constructor 属性。
javascript array constructor property
输出结果:
arr.constructor is: function array() { [native code] }