$.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));
}
});