【发布时间】:2019-06-21 10:10:18
【问题描述】:
这个函数是我写的
fetchWeather(){
axios.get(`http://api.openweathermap.org/data/2.5/forecast/daily?q=${this.state.city},uk&APPID=3a31a881817a041a63eac1c1bbbba705`)
.then((response)=>{
this.setState({report:response.data})
}).catch((error)=>console.log(error))
}
并得到这个错误:
node_modules/axios/lib/core/createError.js:16:24 in createError - node_modules/axios/lib/core/settle.js:19:6 解决 - ... 来自框架内部的另外 10 个堆栈帧
【问题讨论】:
标签: reactjs