ajax调用后台方法

来源:互联网 发布:贸易企业运营数据分析 编辑:程序博客网 时间:2024/05/16 00:40

$.ajax({
//提交方式post
type: “Post”,
//方法URL
url: url,
contentType: “application/json; charset=utf-8”,
dataType: “json”,
success: function(data) {
//返回的数据
alert(data);
},
error: function(err) {
alert(err);
}
});

0 0
原创粉丝点击