摘要: 1 //基本数组去重 2 ///输入:向数组中添加功能函数unique 3 ///输出:返回一个没有重复元素的数组 4 Array.prototype.unique = function(){ 5 result =[]; 6 this.forEach(function(x){ 7 if(result 阅读全文
posted @ 2017-05-15 20:19 在左手 阅读(300) 评论(0) 推荐(0)