MIMIC 以太坊医疗项目开发(4)Axios
生活随笔
收集整理的這篇文章主要介紹了
MIMIC 以太坊医疗项目开发(4)Axios
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Axios 是一個基于 promise 的 HTTP 庫,可以用在瀏覽器和 node.js 中
eg.
// 為給定 ID 的 user 創建請求 axios.get('/user?ID=12345').then(function (response) {console.log(response);}).catch(function (error) {console.log(error);});// 可選地,上面的請求可以這樣做 axios.get('/user', {params: {ID: 12345}}).then(function (response) {console.log(response);}).catch(function (error) {console.log(error);});總結
以上是生活随笔為你收集整理的MIMIC 以太坊医疗项目开发(4)Axios的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MIMIC 以太坊医疗项目开发(3)no
- 下一篇: MIMIC 以太坊医疗项目开发(5)tr