摘要:
Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。 npm安装 npm install axios 使用cdn <script src="https://unpkg.com/axios/dist/axios.min.js"></script> main. 阅读全文
posted @ 2019-12-25 17:29
把我当做一棵树叭
阅读(1983)
评论(0)
推荐(0)
摘要:
npm安装 npm install vue-i18n main.js配置 引入插件 import Vue from 'vue' import VueI18n from 'vue-i18n' Vue.use(VueI18n) 引入对应的语言文件 const i18n = new VueI18n({ l 阅读全文
posted @ 2019-12-25 16:16
把我当做一棵树叭
阅读(925)
评论(0)
推荐(0)
摘要:
原生的uni.requestAPI有promise形式,网上也有uni-request封装模仿axios(我在调用的时候出了问题,还没找到原因) 在基于以下情况决定自己封装 有baseUrl 有时请求header中的content-type 为 application/x-www-form-urle 阅读全文
posted @ 2019-12-25 13:38
把我当做一棵树叭
阅读(4388)
评论(0)
推荐(1)

浙公网安备 33010602011771号