lat:经度
log:纬度
var lat1; var log1; function locationCallback(lat,log){ uexLocation.closeLocation(); lat1 = lat; log1 = log; uexLocation.getAddress(lat,log); document.getElementById('longitude').value = log; document.getElementById('latitude').value = lat; } function LocationSuccess(opCode,dataType,data){ if(dataType==0){ document.getElementById('adre').value = data; } } window.uexOnload = function(){ uexLocation.onChange = locationCallback; uexLocation.cbGetAddress = LocationSuccess; uexWidgetOne.cbError = function(opCode,errorCode,errorInfo){ alert("errorCode:" + errorCode + "\nerrorInfo:" + errorInfo); } }