安卓的wx.getLocation总是失败呢,手机定位确定已开
发布于 5 年前 作者 kliang 7597 次浏览 来自 问答

wx.getLocation({

type: 'gcj02 ',

success: function (res) {

console.log(res,“定位打开了”

},

fail: function () {

console.log(“定位关闭了”)

}

})

2 回复

getLocation:fail:unsupported type,,郁闷了两天,感谢楼主

擦  ,去掉type'gcj02 ',  就没问题了    

回到顶部