你的位置:首页 > Java教程

[Java教程]ajax提交数据Demo


$.ajax({
url: "url",
type: "post",
data: JSON.stringify(yourData),
contentType: 'application/json; charset=utf-8',
beforeSend: function() {},
complete: function() {},
success: function(data) {
if (data.Success == true) {} else {}
},
error: function() {});