<div class="codetitle"> <span><a style="CURSOR: pointer" data="65617" class="copybut" id="copybut65617" onclick="doCopy('code65617')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code65617"> <br><html xmlns="http://www.w3.org /1999/xhtml"> <br><머리> <br><제목></제목> <br>//즐겨찾기 js적引入顺序 <br><link href="css/jquery.ui.base.css" rel="stylesheet" type="text/css" /> <br><link href="css/jquery.ui.theme.css" rel="stylesheet" type="text/css" /> <br><script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <br><script src="js/jquery-1.9.1.js" type="text/javascript"></script> <br><script src="js/jquery.mousewheel.js" type="text/javascript"></script> <br><script src="js/jquery.ui.core.js" type="text/javascript"></script> <br><script src="js/jquery.ui.widget.js" type="text/javascript"></script> <br><script src="js/jquery.ui.button.js" type="text/javascript"></script> <br><script src="js/jquery.ui.spinner.js" type="text/javascript"></script> <br><link href="css/demos.css" rel="stylesheet" type="text/css" /> <br><script type="text/javascript"> <br>$(function () { <br>function latlong() { <br>새 google.maps.LatLng($("#lat").val(), $("#lng").val( 반환 )); <br>function position() { <br>map.setCenter(latlong()) <br>} <br>$("#lat, #lng").spinner({ <br>단계: .001, <br>변경: 위치, <br>중지: 위치 <br>}) <br>var map = new google.maps.Map($("#map")[0], { <br>zoom: 8, <br>center: latlong(), <br>mapTypeId: google.maps.MapTypeId.ROADMAP <br>}) <br>}); <br></script> <br><style type="text/css"> <br>#map { <br>너비:500px; <br>높이:500px; <br>} <br></style> <br></head> <br><본문> <br><label for="lat">纬島</label> <br><input id="lat" name="lat" value="44.797"/> <br><br> <br><label for="lng">经島</label> <br><input id="lng" name="lng" value="-93.278"/> <br><div id="map"></div> <br><div class="demo-description"> <br></div> <br></body> <br></html> <br><br> </div>