我想使用JQuery訪問以下JSON內容。內容:編碼:在JSON與JQuery
http://pipes.yahoo.com/pipes/pipe.run?_id=14756b1d828eae9693f6ef235de879cc&_render=json
我可以通過訪問標題和描述罰款:
var item_html = '<li><a href="'+item.link+'">'+item.title+'</a></li>'+item.description+'';
,但我無法訪問內容:編碼:因爲語法錯誤,當我嘗試:
var item_html = '<li><a href="'+item.link+'">'+item.title+'</a></li>'+item.content:encoded+'';
我敢肯定,有一個簡單的解決方案,但我無法得到我的東西。我已經嘗試了引號,因爲這對我來說最有意義,但一直無法讓它起作用。
在此先感謝。
可能重複[如何訪問包含特殊字符的對象屬性?](http://stackoverflow.com/questions/12953704/how-to -access-object-properties-containing-special-characters) – Quentin
難道不是'item ['content:encoded']'? – DevlshOne
@DevlshOne - 是的,它會 – adeneo