日期:2014-05-17 浏览次数:20514 次
$.ajax({
type: "POST",
//contentType: "application/xml",
contentType: "application/x-www-form-urlencoded",
url: "/reg.asmx/UNameExists",
data: { _uname: $('#uname').val() },
dataType: 'xml',
beforeSend: function () {
//$(cid).attr('class', 'load');
// $(cid).show();
},
success: function (result) {
//alert(result);
alert('fff123');
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
[color=#FF0000]//请求出错处理
//在这里看看出了什么错误 [/color]
}