这是不可能的,HTML不被允许读写本地文件,后台的话应该做的到(不知道能不能,没研究后台)
android 里面,可以这样
navigator.geolocation.getCurrentPosition(GetLocation);
function GetLocation(location) {
alert(location.coords.latitude);
alert(location.coords.longitude);
alert(location.coords.accuracy);
}
遇到同样需求,请问您解决了么?
好像不是调用的手机上的导航 是直接调用的百度地图给的api吧