当把手机设置成无网络,GPS开启的时候,
plus.geolocation.getCurrentPosition(this.translatePoint, function(e) {
mui.toast("异常:" + e.message);
});
结果直接走的异常;
loadGPS: function() {
plus.geolocation.getCurrentPosition(this.translatePoint, function(e) {
mui.toast("异常:" + e.message);
});
}
mui.plusReady(function() {
vm.loadGPS();
setTimeout(function fun() {
vm.loadGPS();
setTimeout(fun, 1 60 1000);
}, 1 60 1000);
});
业务要求每分钟刷新一次
2 个回复
Trust - 少说废话
目前的策略是,只有联网的情况下可用。
1***@qq.com (作者)
那请问在有网没开GPS定位的情况下,能通过网络获取位置信息吗?