文章目录 jquery ajax请求参数和回调函数 (一)常用参数 (二)常用回调函数 (三)其他参数 (四)其他回调函数 (五)备注 jquery ajax请求参数和回调函数 (一)常用参数 参数 类型 默认值 备注 url String 当前页地址 发送请求的地址 type String “GET” 请求方式 (“POST” 或 “GET”) data String 发送到服务器的数据。 async Boolean true 1. 默认设置下,所有请求均为异步请求。 2.如果需要发送同步请求,请将此选项设置为 false cache Boolean true 1. dataType 为 script 和 jsonp 时默认为 false。 2. 设置为 false 将不缓存此页面。 contentType String