var arr = ["Chandelier", "Big Girls Cry", "Burn the Pages", "Eye of the Needle", "Hostage", "Straight for the Knife", "Fair Game", "Elastic Heart", "Free the Animal", "Fire Meet Gasoline", "Cellophane", "Dressed In Black", "Chandelier", "Elastic Heart", "Chandelier", "Chandelier", "Elastic Heart", "Elastic Heart", "Big Girls Cry", "Big Girls Cry"];
$.each(arr, function(i,obj){
console.log(obj);
});
如何確保我的數組是唯一的?刪除重複數組項目
哇,張貼 –
@WesFoster我在這種情況下使用$。每前搜索。 –
那麼你是否要求使用'$ .each'去除重複的方法?很顯然,@WesFoster是 –