jQuery.getJSON and jQuery.parseJSON return [object Object]?

后端 未结 7 1158
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 07:06

EDIT: I\'ve gotten the \"famous question\" badge with this question, so I figured I\'d come back to it and stick what happened to me right at the very tippy

7条回答
  •  借酒劲吻你
    2020-12-08 07:51

    jQuery.parseJSON will convert the json string into json object so alert(obj) will show you [object Object] since it is an object.

    If you want to see what obj contains then use console.log(obj) and then check console log message.

提交回复
热议问题