var cllocationManger = plus.ios.import("CLLocationManager");
var enable = cllocationManger.locationServicesEnabled();
var status = cllocationManger.authorizationStatus();
console.log("enable:" + enable);
console.log("status:" + status);
if (enable && status != 2) {
console.log("手机系统的定位已经打开");
} else {
console.log("手机系统的定位没有打开");
}
plus.ios.deleteObject(cllocationManger);
欢迎光临 精易论坛 (https://125.confly.eu.org/) | Powered by Discuz! X3.4 |