随笔分类 -  js

摘要:Array.from(new Set(array)); [].slice.call(new Set(array)); 阅读全文
posted @ 2018-09-07 13:21 triz 阅读(195) 评论(0) 推荐(0)
摘要:NodeList.prototype.forEach = NodeList.prototype.forEach || function (callback) { for(let i = 0; i < this.length; i++){ callback.call(this[i],this[i],i) } }; 阅读全文
posted @ 2018-09-07 13:18 triz 阅读(222) 评论(0) 推荐(0)