jquery Ajax請求示例,jquery Ajax基本請求方法示例html
================================jquery
©Copyright 蕃薯耀 2018年5月7日ajax
https://www.cnblogs.com/fanshuyao/json
- $.ajax({
-
- url : "xxx/xxx.html",
- type : "post",
-
- data : {
- "method" : "bb",
- "doc_no" : "aa"
- },
- complete : function(XMLHttpRequest, textStatus){
-
-
- },
- error : function(XMLHttpRequest, textStatus, errorThrown){
-
- if("error" == textStatus){
-
- }else{
-
- }
- },
- success : function(data){
- if(data != null){
- if("success" == data.result){
-
- }else{
-
- }
-
- }else{
-
- }
- }
- });
================================服務器
©Copyright 蕃薯耀 2018年5月7日異步
https://www.cnblogs.com/fanshuyao/async