getLocation:fail:unsupported type
wx.getLocation({
type: 'gcj02 ',
success: function (res) {
console.log(res.latitude+’–’+res.longitude);
wx.setStorageSync(‘lat’,res.latitude);
wx.setStorageSync(‘lng’,res.longitude);
},
fail: function(res) {
console.log(res);
console.log(‘定位失败’);
}
});
部分安卓机可以显示,但是有的手机就出现下面这种情况!
wx.getLocation的两种type都尝试过了。
