1.同步ajax
$.ajax({
url: '/Editable/GetDepartments',
async: false,
type: "get",
data: {},
success: function (data, status) {
$.each(data, function (key, value) {
result.push({ value: value.ID, text: value.Name });
});
}
});
2.$.getJSON
$.getJSON("userSource.json",{search:"",page:1},function(result){
userSource = result;
});
3.$.post
$.post('clarifySave',{"clarifyIssues":JSON.stringify(selections)},function(response){
if(response.fail=='false'){
alert('保存完成');
}else if(response.fail=='true'){
alert('FAIL:'+response.msg);
}
$table.bootstrapTable('refresh');
});