-3
我的應用程序基於spring mvc.On我的html頁面im使用jquery ajax將數據發送到server.But它顯示一些錯誤。 也就是說它顯示dataType : 'json'
符號:是意外Jquery Ajax顯示未捕獲的SyntaxError意外的令牌:
$(document).ready(function() {
$('#decision').click(function(e) {
type : 'POST',
dataType : 'json',
url : '/RealEstate/ChangeStatus.html',
data : ({
id : $("#pid").val()
});
});
});
這是什麼'數據:({' –
請仔細閱讀關於'jQuery.ajax()的DOC'方法在這裏你的代碼只是痛苦的錯誤 –