📅  最后修改于: 2022-03-11 14:59:34.243000             🧑  作者: Mango
// this require key, so sign-in and get from
https://home.openweathermap.org/api_keys
//usage - I'm using fetch api
var apiCall = 'https://api.openweathermap.org/data/2.5/weather?q={LOCATION}&appid={API KEY}';
fetch(apiCall)
.then(rawdata => rawdata.json())
.then(parsed_data => console.log(parsed_data));