I have this code:
我有这个代码:
function getLocation() {
//function executed if started by webview
if (typeof Jinterface != 'undefined') {
Jinterface.displayGPSRequest();
}
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition, showError, {
enableHighAccuracy: true
});
} else {
alert("Geolocation is not supported by this browser.");
}
}
function getLocat