62,041
社区成员
发帖
与我相关
我的任务
分享
$(function() {
$.ajax({
type: "POST", //提交方式
url: "请求数据的URL",
data: params, //参数(如果没有参数:null)
dataType: "text", //类型
contentType: "application/json; charset=utf-8",
beforeSend: function(XMLHttpRequest) {
$("#tipDiv").show(); //加载提示层显示
},
success: function(msg) {
},
complete:function(){
$("#tipDiv").hide(); //加载提示层显示
},
error: function(xhr, msg, e) {
alert("error");
}
});
});