0
嗨有這段代碼,但它是拋出一個錯誤。如何輸出Feed中的某些項目?Soundcloud json feed閱讀器
var jsonSoundCloudFeed = "http://api.soundcloud.com/users/pete-snodden/tracks.json?client_id=a27703be6852256590c1921c5f8c7281";
$.ajax({
url: jsonSoundCloudFeed,
data: {},
dataType: "jsonp",
callbackParameter: "jsoncallback",
timeout: 5000,
success: function(data){
$.each(data.kind, function(i, item) {
alert('yo');
});
},
error: function(XHR, textStatus, errorThrown){
console.log("ERROR: " + textStatus);
console.log("ERROR: " + errorThrown);
}
});