摘要:
方法如下: 1 Array.prototype.distinct = function(){ 2 var self = this; 3 var _a = this.concat().sort(); 4 _a.sort(function(a,b){ 5 if(a == b){ 6 var n = self.indexOf(a); 7 self.splice(n,1); 8 } ... 阅读全文
posted @ 2013-01-25 16:17
songworld
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号