我想知道在我JSON數據JSON數據獲取的公共數據列表:jQuery的或Javascript
[{"name":"Lenovo Thinkpad 41A4298","website":"google"},
{"name":"Lenovo Thinkpad 41A2222","website":"google"},
{"name":"Lenovo Thinkpad 41Awww33","website":"yahoo"},
{"name":"Lenovo Thinkpad 41A424448","website":"google"},
{"name":"Lenovo Thinkpad 41A429rr8","website":"ebay"},
{"name":"Lenovo Thinkpad 41A429ff8","website":"ebay"},
{"name":"Lenovo Thinkpad 41A429ss8","website":"rediff"},
{"name":"Lenovo Thinkpad 41A429sg8","website":"yahoo"}]
多少網站,我想輸出像
var webList="google,yahoo,ebay,rediff";
OR
webList[0]="google";
webList[1]="yahoo";
webList[2]="ebay";
webList[3]="rediff";
伊赫桑我想一個網站的名稱只有一次......不重複..your控制檯輸出:谷歌,谷歌,雅虎,谷歌,易趣,ebay,rediff,yahoo – Me7888
你必須從數組結尾過濾 –
看到edit和fiddle也更新了 –