- 博客(3)
- 收藏
- 关注
原创 axios拦截器
import axios from 'axios' import qs from 'qs' import { store } from '@/store' // 添加请求拦截器 axios.interceptors.request.use(config => { const { token } = store.getState().form if (token) { config.data += `&token=${token}` } return confi
2020-05-12 19:59:37
98
原创 store
import { createStore, compose, combineReducers, applyMiddleware } from 'redux' import promise from 'redux-promise' import thunk from 'redux-thunk' import { persistReducer } from 'redux-persist' import storage from 'redux-persist/lib/storage' import autoMer
2020-05-12 19:30:57
88
原创 AJAX的编写
ajax var ajax; if(window.XMLHttpRequest){ ajax = new XMLHttpRequest; } else{ ajax = new ActiveXObject('Microsoft XMLHTTP'); } ajax.open('get','1.html',true); ajax.send(null); ...
2019-11-01 20:30:02
111
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人