var geolocation = new BMap.Geolocation();
geolocation.getCurrentPosition(function(r){
if(this.getStatus() == BMAP_STATUS_SUCCESS){
//alert('您的位置:'+r.point.lng+','+r.point.lat);
}
else {
alert('failed'+this.getStatus());
}
},{enableHighAccuracy: true});
因为不会 AJAX,特来请教,非常感谢!上面的代码是获取当前位置经纬度,如何把里面的 r.qoint.lng 和 r.point.lat 传给 PHP 呢?