我發現這一點:獲取沒有JSON.parse的json對象?
使用Python輸出:
print ‘Content-type: text/x-json\n\n’
print json.dumps([{'title':arr['title']}])
,並得到JSON字符串使用jQuery:
$ajax(
success: function(msg){
if(msg[0].title) alert(msg[0].title);
}
)
它的工作原理,誰可以告訴我,爲什麼它是什麼?謝謝〜
感謝您的回答〜medr – Zhaiduo 2010-09-27 02:29:06