【導(dǎo)讀】<!DOCTYPEhtml>. <!--. 數(shù)限制。body{text-align:center;height:100%;overflow:hidden;}. #showMapDivTagID{width:100%;height:100%;position:absolute;}. };(handleSuccess,locationError,options);alert("瀏覽器不支持html5來獲取地理位置信息");varcurrentLatitude=;varcurrentLatitude=;alert("您位置的經(jīng)度是:"+currentLongitude+"緯度是:"+currentLatitude);varmap=new("showMapDivTagID");varpoint=new(""+currentLongitude+"",""+currentLatitude+"");(point,19);vargc=new();varmarker=new(point);(marker);(point);varaddComp=;if(!==){. "<div><h4style='margin:005px0;padding:0'>你當(dāng)前的位置。style='margin:0;line-height:;font-size:13px;text-indent:2em'>"++","+. style='margin:0;line-height:;font-size:13px;text-indent:2em'>"++","+. "</div>";(infoWindow,point);});(point,0,translateCallback);alert("位置服務(wù)器拒絕");break;alert("獲取不到位置");break;