2020年12月9日
摘要: 遍历数组:forEach(常用) item:数组中的每一项 index:索引 array:原数组 arr.forEach(function (item, index, array) { }); 1、 判断是否是数组 (1) instanceof (2) Array.isArray(obj) 用于确定 阅读全文
posted @ 2020-12-09 22:12 努力了就 阅读(17) 评论(0) 推荐(0)