安卓的wx.getLocation总是失败呢,手机定位确定已开

发布于 7 年前作者 kliang7768 次浏览最后编辑 7 年前来自 ask

wx.getLocation({

type: 'gcj02 ',

success: function (res) {

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

},

fail: function () {

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

}

})

2 回复
cqian
cqian1 楼6 年前

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

xieping
xieping2 楼5 年前

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