$.ajax({
type: "post",
url: url,
data: data,
cache: false,
async : false,
// dataType: "JSON",
success: function (data ,textStatus, jqXHR)
{
if(data.code == 200){
alert("插入成功了");
}else{
alert(data.message);
}
},
error:function (XMLHttpRequest, textStatus, errorThrown) {
alert(typeof(errorThrown));
}
});
AJAX 请求
猜你喜欢
转载自blog.csdn.net/weixin_42630877/article/details/81224521
今日推荐
周排行