页面跳转用的是 justep.Shell.showPage,
浏览器定位代码如下:
var geolocation = new BMap.Geolocation();
geolocation.getCurrentPosition(function(r){ //定位结果传递给R变量
//geolocation.watchPosition(function(r){
if(this.getStatus() == BMAP_STATUS_SUCCESS){
var distance=(map.getDistance(point, r.point)).toFixed(2);
var a = r.latitude
var b = r.longitude
alert(a+'+'+b)