$.ajax({
type : 'POST',
url : '${path}/department/updateTreeFramework.do',
data :$('#from').serialize(),
async : false,// 同步
dataType : 'json',
success : function(data) {
history.back();
},
error : function(data, status){
console.log("request error");
}
});
$.post(
'save.do',
{'a':1},
function(data, status){
if(status == 'success'){
console.log('success');
}
},
'json');
$.get(
'save.do',
{'a':1},
function(data, status){
if(status == 'success'){
console.log('success');
}
},
'json');
java鬼混笔记:$.ajax、$.post、$.get
最新推荐文章于 2023-10-16 11:03:39 发布