// 先假装有loading组件(util.hideLoading, util.showLoading),util.toast组件, time:表示loading时间 let ajax = (url, data = {}, params ...
// 先假装有loading组件(util.hideLoading, util.showLoading),util.toast组件, time:表示loading时间 let ajax = (url, data = {}, params ...
$.ajax( { url:'http://127.0.0.1:30080/api-a/quasiCustom/selectCustomList', type:'post ...
原文链接:https://blog.csdn.net/lchq1995/article/details/88293047?utm_medium=distribute.pc_ ...
将token设置到header 这样token就已经放到header上了,代表设置成功 主要用途: 当输入用户名及密码,登录成功后,后台会返回一个token,在之后发送的请求都要带上这个token,因为后台设置了拦截,如果token一致,则允许访问 ...
使用: xhr.setRequestHeader(); 注意: xhr.setRequestHeader() 必须在xhr.open()之后, xhr.send()之前调用; ...
1.post方法header设置: post方式: get方式: ...