数组去重js方式

var selectmap = new Array();

/(x0f[^x0f]+)x0f[sS]*1/.test("x0f"+selectmap.join("x0fx0f") +"x0f")返回为true表示存在重复数据

原文地址:https://www.cnblogs.com/lc93/p/9028038.html