- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Calendar - jQuery EasyUI Demo</title>
- <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="../themes/icon.css">
- <link rel="stylesheet" type="text/css" href="demo.css">
- <script type="text/javascript" src="../jquery-1.8.0.min.js"></script>
- <script type="text/javascript" src="../jquery.easyui.min.js"></script>
- </head>
- <script>
- $(function(){
- $('#ss').timespinner({
- showSeconds:true,
- onSpinUp:function(){
- 。。。 },
- onSpinDown:function(){
- 。。。 }
- });
- $('#ss').timespinner('setValue','12:56:7');
- });
- </script>
- <body>
- <input id="ss">
- </body>
- </html>
对于时间的设置,setValue是和大小写有关系的,小写会出错