0
以下內容通過變量data
返回。通過jQuery訪問JSON數據
{"success":0,"errors":[],"field_errors":{"title":"This field is required.","url_title":"This field is required.","field_id_9":"This field is required.","field_id_229":"This field is required.","testimonial_import_id":"This field is required.","testimonial_display":"This field is required."},"entry_id":null,"url_title":null,"channel_id":"4"}
我無法訪問個別項目。
我曾嘗試:
data.success
data[0]
data[0].success
任何人都可以點我在這裏向正確的方向?
'String' or'Object'? –
我會怎麼說?我直接返回到一個函數,所以我認爲對象。 – ccdavies
'console.log(typeof data)' – Andreas