JQ往数组添加不重复的元素 var arrRead=[]; var arrReads = new Set(); arrRead.push(readNum); arrRead.forEach(x=>arrReads.add(x));