标签:type [] turn repeat cti parent code main 数据
function removeRepeat(data) { var temp = ""; var mainData = []; for (var i = 0; i < data.length; i++) { if (!data[i].parent) { temp = data[i]; for (var j = 0; j < data.length; j++) { if (temp.DeliveryType == data[j].DeliveryType) { data[j].parent = true; } } mainData .push(data[i]) } } return mainData ; }
标签:type [] turn repeat cti parent code main 数据
原文地址:http://www.cnblogs.com/Michael-D/p/6237938.html