标签:
var a = [1, 2, 3], b = [101, 2, 1, 10]; var c = a.concat(b.filter(function (item) { return a.indexOf(item) < 0; }));
js数组合并去重
原文地址:http://www.cnblogs.com/baoguanxia/p/4378605.html