下面的JSON功能不返回任何東西......的getJSON不返回任何東西
$.getJSON(formUrl, function(data) {
alert(data)
$('.response').html('<p>' + data.title + '</p>'
+ '<p>' + data.description + '</p>');
});
的formUrl是正確的,在
{"title":"Smashing Magazine","description":"Smashing Magazine is focused on design and web-development. We deliver useful information, latest trends and techniques, useful ideas, innovative approaches and tools."}
形式返回數據有人能指出什麼我」米做錯了嗎?我提醒數據和它的空...
謝謝!
PHP與此有什麼關係?我現在更改了標籤。 – shamittomar 2010-09-01 12:18:56
不是標籤警察,但如果你的代碼是基於JQuery的,那麼你應該把它標記爲禮貌。 – donohoe 2010-09-01 12:31:55