实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
AخA
 
1
<!doctype html>
2
<html>
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 旋转器(Spinner) - 地图</title>
6
  <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
7
  <script src="https://maps.google.com/maps/api/js?sensor=false"></script>
8
  <script src="//code.jquery.com/jquery-1.9.1.js"></script>
9
  <script src="/static/js/jqueryui/resources/demos/external/jquery.mousewheel.js"></script>
10
  <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
11
  <link rel="stylesheet" href="https://jqueryui.com/resources/demos/style.css">
12
  <script>
13
  $(function() {
14
    function latlong() {
15
      return new google.maps.LatLng( $("#lat").val(), $("#lng").val() );
16
    }
17
    function position() {
18
      map.setCenter( latlong() );
19
    }
20
    $( "#lat, #lng" ).spinner({
21
      step: .001,
22
      change: position,