方法一:
$.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(){
}
});