I customize two functions in WeChat Mini Programs, one is to get the location, the other is to get the weather,
in Page
Page({
onLoad:function(){
this.getLocalCity();
this.getWeather();
}
})
is called on onLoad, but no matter how I write the, getWeather () function, it always executes first. Why?
description:
getWeather uses wx.request () API,getLocalCity is followed by wx.getLoaction (), followed by Gaode Mini Program SDK.
ask for information and guide ~