
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
axios请求失败,如何获取接口返回的状态码及错误信息
如果axios请求失败,如何获取接口返回的状态码及错误信息?方法如下axios.get('api/test').catch(function (error) {if (error.response) {// The request was made and the server responded with a status code// that falls out of the range o
require.context()的用法详解
1.require.context()vue项目中 使用require.context()实现前端工程化引入文件require.context(directory, useSubdirectories, regExp, mode = 'sync')directory:表示检索的目录useSubdirectories:表示是否检索子文件夹regExp:匹配文件的正则表达式,一般是文件名mode:加载
到底了







