amap 获取 某地天气 weather() { let that = this; AMap.plugin(‘AMap.Weather’, function () { var weather = new AMap.Weather(); weather.getForecast(‘北京市’, function (err, data) { console.log(data); }); }); },