【发布时间】:2014-06-30 21:41:50
【问题描述】:
我的应用程序基于 spring mvc。在我的 html 页面上,我使用 jquery ajax 将数据发送到服务器。但它显示了一些错误。
那就是它显示 dataType : 'json' 符号 : 是意外的
$(document).ready(function() {
$('#decision').click(function(e) {
type : 'POST',
dataType : 'json',
url : '/RealEstate/ChangeStatus.html',
data : ({
id : $("#pid").val()
});
});
});
【问题讨论】:
-
这是什么
data : ({? -
请阅读有关
jQuery.ajax()方法的文档。你这里的代码是非常错误的
标签: jquery ajax spring-mvc