datetimebox默认打开面板显示的是当前的时间,有个需求就是当打开面板时显示固定的”00:00:00”时间,
它本身有个方法spinner方法可以获得时间微调器对象,它所依赖的组件combo有个onShowPanel事件。
所以可以这样来实现需求:
<input class="easyui-datetimebox"
data-options="onShowPanel:function(){
$(this).datetimebox('spinner').timespinner('setValue','00:00:00');
}">
本文介绍了一种在使用Datetimebox组件时,通过监听onShowPanel事件并利用spinner方法,将弹出面板默认显示时间设置为00:00:00的方法。

1万+

被折叠的 条评论
为什么被折叠?



