原生JS、jQuery 遍历方法总结

2018-05-17
阅读 1 分钟
4.2k
2.forEach() 和 map() 里面每一次执行匿名函数都支持3个参数:数组中的当前项item,当前项的索引index,原始数组input。