js 的each()方法遍历对象和数组





Insert title here


 



输出结果:

Obj :a-one
Obj :b-two
Obj :c-three
Obj :d-four
Obj :e-five
arr :0-a
arr :1-b
arr :2-c
arr :3-d
arr :4-e

你可能感兴趣的:(js)