【发布时间】:2012-05-30 05:05:07
【问题描述】:
我正在发出 getJSON 请求并收到错误 Uncaught SyntaxError: Unexpected token <. xml>
$.getJSON('https://www.domain.com/MainService.asmx/LoginMobile?jsoncallback=?', parameter, function (data, textStatus) {
showDialogMessage('Login error', textStatus);
});
【问题讨论】:
-
“我在回复中看到了 xml。” vs getJSON o_O xml != json
-
为什么我的回复中有xml。我只想得到json?
-
getJSON仅接受 json。它来自它的名称和文档