国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Tencent Map Mini Program SDK, the data returned by success cannot be retrieved
新大都
新大都 2018-08-21 16:58:36
0
1
1356

Tencent Map Mini Program SDK, calculates the distance between two locations, the data returned by success cannot be retrieved

  1. ##that.setDate, the front-end page displays normally, but the data in the data The data has not been modified

  2. app.data.**, and

  3. wx.setStorage cannot be modified through app(). The cached data taken out has always been It’s the last cached data

I hope someone can tell me how to get this value out



新大都
新大都

reply all(1)
新大都客運(yùn)(小鄭)

qqmapsdk.calculateDistance({

from: {

latitude: that.data.start.location.lat,

longitude: that.data.start.location.lng

},

to: [{

latitude: that.data.end.location.lat,

longitude: that.data.end.location.lng

}],

success: function (res) {

let myDistance = res.result.elements[0].distance

console.log(res.result.elements[0].distance,"00獲取的距離是")

wx.setStorage({

key: 'myDistance',

data: res.result.elements[0].distance,

})

}


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template