Home  >  Article  >  Web Front-end  >  jquery asynchronous cross-domain access code_jquery

jquery asynchronous cross-domain access code_jquery

WBOY
WBOYOriginal
2016-05-16 17:30:53976browse

Copy code The code is as follows:

/*
$.ajax({
url : url,
type : 'POST',
data : {
CorpID : CorpID,
Pwd : Pwd,
Mobile : Mobile,
Content : Content,
Cell: '',
Sendtime: '
},
Async: TRUE, // asynchronous
Datatype:' Text ', //' Text ',' jsonp '
Success : function(data, textStatus) {
                               //alert(data); } else if (data == -1) {
              alert("Account not registered!"); Error.");
            } else if (data == -3) {
                              alert("Wrong account or password!");                                               alert("The mobile phone number format is incorrect!");
                                                                                                                                        ; == -6) {
                    alert("The scheduled sending time is not a valid time format!"); Send the same text message to your mobile phone number!");
                                                                                                                                                                                                     (data) {
          alert('Sending SMS: An error occurred while calling the SMS interface, please contact the administrator in time!'); >
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn