my-ts-axios 1创建ts项目 create-react-app my-app --template typescript 2装包 yarn add axios @types/axios qs @types/qs parse-headers express body-parser 3.准备后台环境 很简单的node代码 api.js axios返回的response