实例代码“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="//code.jquery.com/jquery-1.9.1.js"></script>
8
  <script src="/static/js/jqueryui/resources/demos/external/jquery.mousewheel.js"></script>
9
  <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
10
  <link rel="stylesheet" href="https://jqueryui.com/resources/demos/style.css">
11
  <script>
12
  $(function() {
13
    var spinner = $( "#spinner" ).spinner();
14
 
15
    $( "#disable" ).click(function() {
16
      if ( spinner.spinner( "option", "disabled" ) ) {
17
        spinner.spinner( "enable" );
18
      } else {
19
        spinner.spinner( "disable" );
20
      }
21
    });
22
    $( "#destroy" ).click(function() {