forEach、for in 、 for of

forEach不能中断循环(使用break语句或使用return语句)。

for of无法获取index

for in遍历对象

猜你喜欢

转载自www.cnblogs.com/aisiqi-love/p/10190685.html