jquery異步跨域訪問(wèn)代碼_jquery
來(lái)源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-27 21:10:36
jquery異步跨域訪問(wèn)代碼_jquery
jquery異步跨域訪問(wèn)代碼_jquery: 代碼如下:/* $.ajax({ url : url, type : 'POST', data : { CorpID : CorpID, Pwd : Pwd, Mobile : Mobile, Content : Content, Cell : '', SendTime : '' }, async : true,//異步 da
導(dǎo)讀jquery異步跨域訪問(wèn)代碼_jquery: 代碼如下:/* $.ajax({ url : url, type : 'POST', data : { CorpID : CorpID, Pwd : Pwd, Mobile : Mobile, Content : Content, Cell : '', SendTime : '' }, async : true,//異步 da

代碼如下:
/*
$.ajax({
url : url,
type : 'POST',
data : {
CorpID : CorpID,
Pwd : Pwd,
Mobile : Mobile,
Content : Content,
Cell : '',
SendTime : ''
},
async : true,//異步
dataType : 'text',//'text','jsonp'
success : function(data, textStatus) {
//alert(data);
if (data == 0) {
alert("短信已發(fā)送成功,請(qǐng)注意查收!");
} else if (data == -1) {
alert("賬號(hào)未注冊(cè)!");
} else if (data == -2) {
alert("服務(wù)端報(bào)錯(cuò)信息:其他錯(cuò)誤.");
} else if (data == -3) {
alert("帳號(hào)或密碼錯(cuò)誤!");
} else if (data == -4) {
alert("手機(jī)號(hào)碼格式不正確!");
} else if (data == -5) {
alert("余額不足,請(qǐng)先充值!");
} else if (data == -6) {
alert("定時(shí)發(fā)送時(shí)間不是有效的時(shí)間格式!");
} else if (data == -7) {
alert("禁止10小時(shí)以內(nèi)向同一手機(jī)號(hào)發(fā)送相同短信!");
} else if (data != null) {
alert("返回代碼:" + data);
}
},
error : function(data) {
alert('發(fā)送短信: 調(diào)用短信接口出錯(cuò),請(qǐng)及時(shí)聯(lián)系管理員!');
}
});
*/
聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
jquery異步跨域訪問(wèn)代碼_jquery
jquery異步跨域訪問(wèn)代碼_jquery: 代碼如下:/* $.ajax({ url : url, type : 'POST', data : { CorpID : CorpID, Pwd : Pwd, Mobile : Mobile, Content : Content, Cell : '', SendTime : '' }, async : true,//異步 da