jQuery Ajax 参数解析

简单的例子:

$.ajax({
   type:"post",  
   data:{a:acon,b:bcon}  ,    
   url:"ajax.php",
   async:false
... })

type   ---传递方式,get或post

data  ---传递参数,相当于传了a=acon给ajax.php

url  ---异步执行文件

async  ---默认为true,不等返回结果继续执行; false,等待返回结果后才继续执行。一般选择为false

原文地址:https://www.cnblogs.com/tinyphp/p/3511155.html