for in有问题吧?

发布于 7 年前作者 pinggong4546 次浏览最后编辑 7 年前来自 ask

for in 不是该输出array1里的元素么?怎么都是输出index?

1 回复
kxu
kxu1 楼5 年前

js跟java是两种不同的语言,for in在js中遍历的是属性名