/lib/adapter/xhr.js
xhr.js 暴露的xhrAdapter方法,是axios在浏览器环境下的默认请求方法,可以在配置中使用adapter配置项对默认的方法进行替换。
1 | module.exports = function xhrAdapter(config) { |
xhr.js 暴露的xhrAdapter方法,是axios在浏览器环境下的默认请求方法,可以在配置中使用adapter配置项对默认的方法进行替换。
1 | module.exports = function xhrAdapter(config) { |