摘要:
在beforeSend或在headers加参数都可以,参数值中不能包含中文。 $.ajax( { url:'http://127.0.0.1:30080/api-a/quasiCustom/selectCustomList', type:'post', dateType:'json', before 阅读全文
posted @ 2022-08-25 11:15
net5x
阅读(5358)
评论(0)
推荐(0)
摘要:
在使用ajax请求接口时需要在请求头添加token来进行身份验证,方式如下: $.ajax({ type: 'GET', url: 'http://api.php', dataType: 'json', jsonp: 'callback', beforeSend: function (XMLHttp 阅读全文
posted @ 2022-08-25 10:14
net5x
阅读(2271)
评论(0)
推荐(0)

浙公网安备 33010602011771号