标签:
var c=[2,4,3,5,2,2,2], a = {}, i = 0; for(;i<c.length;i++){ a[c[i]] = 1 } c=[]; for(var g in a){ c.push(g-0); } console.log(c);
js去除重复数值
原文地址:http://www.cnblogs.com/xupeiyu/p/4373871.html