87,995
社区成员
发帖
与我相关
我的任务
分享 $.ajax({
method: "post",
url: url,
async: false,
time: myDate.getTime(),
beforeSend: function (xmlhttp) {
xmlhttp.setRequestHeader('Content-Type', 'application/x-wwww-form-urlencoded;charset=UTF-8');
if (head != null) {
for (value in head) {
var v=head[value];
xmlhttp.setRequestHeader(value, v);
}
}
},
error: function (XHR, textStatus, errorThrown) {
result = "XHR=" + XHR + "\ntextStatus=" + textStatus + "\nerrorThrown=" + errorThrown;
},
success: function (data, textStatus) {
result = data;
}
});