最贊回答 / softcat
vue源碼:https://github.com/web-gm/axios-learn.git后端接口:https://github.com/web-gm/axios_node_api.git
2020-04-21
最新回答 / 胖虎虎虎虎_
可能是你在Home復(fù)制代碼到2-2中,沒(méi)有將script下面的components填寫的HelloWord組件給刪除,所以才會(huì)報(bào)錯(cuò)
2020-04-20
最贊回答 / 慕九州9057380
import?axios?from?'axios'import?service?from?'./contactApi'import?{?Toast?}?from?'vant'//?1.service?循環(huán)遍歷出不同的請(qǐng)求方法let?instance?=?axios.create({??//?注意地址的拼寫??baseURL:?'http://localhost:9000/api',??timeout:?1000})let?Http?=?{};?//包裹請(qǐng)求方法的容器//?2.請(qǐng)求格式或者參數(shù)的統(tǒng)一for?...
2020-04-03