# Webpack-axios **Repository Path**: hackTony/webpack-axios ## Basic Information - **Project Name**: Webpack-axios - **Description**: 基于webpack开发的一个数据请求轮子,axios库 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-16 - **Last Updated**: 2022-02-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 我们已经知道了 axios 的核心代码和流程,完全可以自己造一个轮子 它需要的几个核心部分如下: - Axios 构造函数 - 拦截器 - dispatchRequest - adapter 如果要一个极简核心的话,我们只需要 request 请求函数,和一个 XMLHttpRequest 即可,拦截器,适配器 dispatchRquest 都可以不要 - Axios 构造函数