$.ajax({ url:'http://www.baidu.com',//请求或发送数据的地址 type:'POST',//请求方式,POST,GET,PUT,DELECT等 data:data,//参数或者数据 cache:true,//是否缓存 headers:{},//请求头 beforeSend:function(){}, success:function(){}, error:function(){}, complete:function(){} });
标签:function,请求,方式,ajax,简单,POST,data From: https://www.cnblogs.com/zhaofen/p/17115528.html