getLocation:fail:require permission desc
wx.getLocation({
type: ‘gcj02’,
success: function (res) {
var latitude1 = res.latitude
var longitude1 = res.longitude
},
fail: function (resolve) {
console.log(resolve)
}
})
console.log(resolve)输出:
getLocation:fail:require permission desc
1 回复