我发现Array
对象和Array.prototype
具有length
属性。我对使用该Array.length
属性感到困惑。你如何使用它?
Console.log(Object.getOwnpropertyNames(Array));//As per Internet Explorer
输出:
length,arguments,caller,prototype,isArray,
Prototype
并且isArray
可以使用,但是您如何使用该length
物业?
Array
是构造函数。
所有函数都有一个length
属性,该属性返回函数定义中已声明参数的数量。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句