调用导致错误

时间:2018-08-05 01:02:25

标签: javascript reactjs native

使用提取呼叫时,出现以下错误!请帮忙弄清楚!

componentDidMount() {
      url = "api.openweathermap.org/data/2.5/weather? 
      lat=37.422&lon=-122.084&appid="+API_KEY;
      fetch(url)
      .then((response) => {
        console.log(response);
    })
  }

enter image description here

0 个答案:

没有答案