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

后端 未结 7 1175
没有蜡笔的小新
没有蜡笔的小新 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:28

    try sending that object to console.log. You'll get a clearer picture what does it contain.

    Also, put dataType: 'json' and remove parseJSON because it's all the same.

提交回复
热议问题