onLoad: function () { var that = this // 获取接口城市数据 wx.request({ url: userCarUtil.host + userCarUtil.getCity, success: function (res) { //console.log(res.data) that.setData({ citysMap: res.data }) } }) }
本文共 307 字,大约阅读时间需要 1 分钟。
onLoad: function () { var that = this // 获取接口城市数据 wx.request({ url: userCarUtil.host + userCarUtil.getCity, success: function (res) { //console.log(res.data) that.setData({ citysMap: res.data }) } }) }
转载于:https://my.oschina.net/hehongbo/blog/832607