摘要: js中的forEach()方法只能遍历数组,不能遍历字符串和对象,和$.each()有很多使用上的区别array.forEach(funcion(value,index,arr){},thisValue);value必须;index:元素下标(可选);arr:调用方法的数组thisValue,for 阅读全文
posted @ 2018-05-30 10:34 言凡 阅读(665) 评论(0) 推荐(0) 编辑