方法一: $.ajax({
type: "post",
async: false,
url: "/depot/depotTaskAdd.action",
data: "userId=" + userId + "&typeCode=" + typeCode,
success: function(json){
},
error: function(){
}
});
type: "post",
async: false,
url: "/depot/depotTaskAdd.action",
data: "userId=" + userId + "&typeCode=" + typeCode,
success: function(json){
},
error: function(){
}
});
本文介绍了一种使用jQuery的Ajax方法进行同步数据提交的方式。通过示例代码展示了如何设置Ajax请求参数,包括请求类型、URL、数据及回调函数等。
2997

被折叠的 条评论
为什么被折叠?



