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> 效果如圖:
2.賦值
dateTimeBox $('#StartDate').val(startTime);
dateBox $('#StartDate').datebox('setValue', startTime);
combobox $('#dept').combobox('setValue',depment);//設值 $('#dept').combobox('setText',depment);//設置文本值
Text $('#name').val(name);