ajax

$.ajax({
type: "POST",
url: "/index.php",
data: data,
dataType: "json",
success: function(r_msg){
if(r_msg.status==0){
 alert("fail");
}else{
alert("ok");
}
}
});

原文地址:https://www.cnblogs.com/jackspider/p/3969802.html