62,242
社区成员




$.ajax({
data: pars,
url: url,
type: "POST",
contentType: "application/json;utf-8",
dataType: 'json',
cache: false,
success: function (json) {
callback(json.d);
},
error: function (xml, status) {
if (status == 'error') {
try {
var json = eval('(' + xml.responseText + ')');
alert(json.Message + '\n' + json.StackTrace);
} catch (e) { }
} else {
alert(status);
}
},
beforeSend: function (xml) {
if (!pars) xml.setRequestHeader("Content-Type", "application/json;utf-8")
}
});