手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >jquery异步跨域访问代码
jquery异步跨域访问代码
摘要:复制代码代码如下:/*$.ajax({url:url,type:'POST',data:{CorpID:CorpID,Pwd:Pwd,Mob...

复制代码 代码如下:

/*

$.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("短信已发送成功,请注意查收!");

} else if (data == -1) {

alert("账号未注册!");

} else if (data == -2) {

alert("服务端报错信息:其他错误.");

} else if (data == -3) {

alert("帐号或密码错误!");

} else if (data == -4) {

alert("手机号码格式不正确!");

} else if (data == -5) {

alert("余额不足,请先充值!");

} else if (data == -6) {

alert("定时发送时间不是有效的时间格式!");

} else if (data == -7) {

alert("禁止10小时以内向同一手机号发送相同短信!");

} else if (data != null) {

alert("返回代码:" + data);

}

},

error : function(data) {

alert('发送短信: 调用短信接口出错,请及时联系管理员!');

}

});

*/

【jquery异步跨域访问代码】相关文章:

jQuery聚合函数实例

jquery滚动特效集锦

jquery使用each方法遍历json格式数据实例

jQuery实现不断闪烁文字的方法

超酷右下浮出广告窗口代码

强制设为首页代码

jquery实现弹出层效果实例

Jquery zTree 树控件异步加载操作

打印/预览/设置的客户端代码

免费空间广告万能消除代码

精品推荐
分类导航