Loading

摘要: 1.安装axios npm: cdn: 2.配置axios 在项目中新建api/index.js文件,用以配置axios api/index.js 这里的配置了POST、GET、PUT、DELETE方法。并且自动将JSON格式数据转为URL拼接的方式 同时配置了跨域,不需要的话将withCreden 阅读全文
posted @ 2017-12-06 13:07 hackyo 阅读(32959) 评论(0) 推荐(7) 编辑