码迷,mamicode.com
首页 > Web开发 > 详细

ajax 调用

时间:2014-11-17 15:27:13      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   os   sp   div   on   

          $.ajax({
                type: "post",
                url: url,
                data:  { "key": "ValidateMobile", "phone": phone },
                async: false,
                dataType: "json",
                cache:false,
                success: function (msg) {
                    if (msg.returncode != "0") {
                        $.AmHelper.ShowMsg(msg.message)
                    }
                },
                error: function(XMLHttpRequest, textStatus, errorThrown) {
                    alert(XMLHttpRequest.status);
                    alert(XMLHttpRequest.readyState);
                    alert(textStatus);
                },
        
                complete: function (XHR, TS) { XHR = null }
            });

 

ajax 调用

标签:style   blog   http   io   color   os   sp   div   on   

原文地址:http://www.cnblogs.com/lindaWei/p/4103453.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!