jQuery的AJAX常用属性及解释
$.ajax({
url: 请求路径,
type: 请求方式默认为get,
dataType:期望的返回值类型,常用的有text、json、html,
data: {}发送请求时传递的参数,写法({“name”:name,"pwd":pwd}),
async:true或者false异步加载的开启或者关闭,
success:function(result){
后台请求访问成功的回调函数
},
error:function(){
后台请求访问失败的回调函数
}
})