首页 > 代码库 > ajax 调用

ajax 调用

          $.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 调用