标签:java script json class for highlight datalist div javascrip
var dataList = [];//需要去重复的集合 var res = [];//去重复后的集合 var tem = {}; for(var i = 0; i < dataList.length; i++){ if(!json[dataList[i]]){ res.push(dataList[i]); tem[dataList[i]] = 1; } }
标签:java script json class for highlight datalist div javascrip
原文地址:https://www.cnblogs.com/ywx2/p/10960390.html