getWeather(){
fetch(\'https://www.tianqiapi.com/api/?version=v1&cityid=101020100&city=上海&ip=&callback=\')
.then(res => res.json())
.then(data => {
let result = data.data;
})
.catch(err => console.log(\'getWeather error\'))
}
getWeather(){
fetch(\'https://www.tianqiapi.com/api/?version=v1&cityid=101020100&city=上海&ip=&callback=\')
.then(res => res.json())
.then(data => {
let result = data.data;
})
.catch(err => console.log(\'getWeather error\'))
}
相关文章: