jquery easyui时间微调器

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5.  <title>Calendar - jQuery EasyUI Demo</title>
  6.  <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css">
  7.  <link rel="stylesheet" type="text/css" href="../themes/icon.css">
  8.  <link rel="stylesheet" type="text/css" href="demo.css">
  9.  <script type="text/javascript" src="../jquery-1.8.0.min.js"></script>
  10.  <script type="text/javascript" src="../jquery.easyui.min.js"></script>
  11. </head>
  12. <script>
  13.  $(function(){
  14.   $('#ss').timespinner({ 
  15.    showSeconds:true,
  16.     onSpinUp:function(){
  17.      。。。    },
  18.     onSpinDown:function(){
  19.      。。。    }
  20.   });
  21.   $('#ss').timespinner('setValue','12:56:7');
  22.   
  23.  }); 
  24. </script>
  25. <body>
  26.  <input id="ss">
  27. </body>
  28. </html>

对于时间的设置,setValue是和大小写有关系的,小写会出错

原文地址:https://www.cnblogs.com/qingxuan/p/2914583.html