摘要:
get&&post请求 request.js文件 import { fetch as fetchPro } from "whatwg-fetch"; import qs from "qs"; const get = (options) => { let url = options.url; let 阅读全文
摘要:
redux请求数据流程 store里面的index.js文件 1 import {createStore,combineReducers,applyMiddleware} from "redux" 2 import reduxThunk from "redux-thunk" 3 import use 阅读全文
摘要:
关于跨域这一块 const proxy = require("http-proxy-middleware") module.exports = (app) => { app.use("/ajax", proxy({ target: "http://39.105.204.151:3000",/*带理地 阅读全文