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" οnclick="seach()" value="点击"> </body> 效果如图:
2.赋值
dateTimeBox $('#StartDate').val(startTime);
dateBox $('#StartDate').datebox('setValue', startTime);
combobox $('#dept').combobox('setValue',depment);//设值 $('#dept').combobox('setText',depment);//设置文本值
Text $('#name').val(name);