Jq 的 ajax请求(持续更新)
一个简单的Jquery的Ajax请求
$.ajax({
type : '', // get或者post请求
url : '' , //url地址
data : '', //需要发送的数据
timeout : 0 , //设置请求超时时间
async : true, //true(异步)或者false(同步)同步请求将锁住浏览器,用户其它操作必须等待请求完成才可以执行。
dataType : 'json',
//值如果为'json',会把后端返回的字符串通过JSON
原创
2021-07-26 11:56:34 ·
122 阅读 ·
0 评论