運行在Chrome我會收到此錯誤信息:未捕獲的SyntaxError:意外的標記:鉻:「未捕獲的SyntaxError:意外的標記:」
這是我的代碼的一部分,負責請求
function wetter() {
$.ajax({
'Accept': 'application/json',
type: 'GET',
url: '[here comes the url',
dataType: 'jsonp',
success: function (data) {
//content
}
});
};
「成功」函數塊內是否有其他代碼,可能會導致問題 – ggreiner
可能不喜歡你的「接受」。它告訴你錯誤是在哪裏? – Jack
鉻告訴我錯誤是在json –