阅读背景:

对象数组的Javascript数组长度不正确

来源:互联网 

Could someone explain this (strange) behavior? Why is the length in the first example 3 and not 2, and most importantly, why is the length in the second example 0? As long as the keys are numerical, length works. When they are not, length is 0. How can I get the correct length from the second example? Thank you.Could someone explain this (strange) behavior?




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: