1.取值


var time = $('.easyui-datetimebox').datetimebox('getValue');

全部代码如下:
<script type="text/javascript">
function seach(){
    var time = $('.easyui-datetimebox').datetimebox('getValue');
    alert(time)
}
</script>
</head>
<body>
<input class="easyui-datetimebox">
<input type="button" onclick="seach()" value="点击">
</body>

效果如图:

easyui datatimebox 取值和赋值

 

2.赋值

  dateTimeBox

    $('#StartDate').val(startTime);
dateBox $(
'#StartDate').datebox('setValue', startTime);
combobox $(
'#dept').combobox('setValue',depment);//设值 $('#dept').combobox('setText',depment);//设置文本值

Text $('#name').val(name);

 

相关文章:

  • 2022-02-19
  • 2022-01-12
  • 2021-04-26
  • 2021-06-10
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-29
  • 2021-09-17
  • 2021-05-18
  • 2022-12-23
  • 2021-11-21
  • 2021-08-09
相关资源
相似解决方案