今天的学习内容:
$.ajax({
url: 请求地址
data: 请求参数
type: 请求方式(get、post)
dataType: 响应数据类型(text\html\xml\Json\script\Jsonp)
async: false同步 true异步
cache: true缓存 false不缓存
beforeSend:function(xhr){loading}: xmlHttp
success:function(data,textStatus,jqxhr){}
error:function(){}
complete:function(){}
})
$.post() $.get()