easyui datatimebox 取值和赋值

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 datetimebox 获得值

 

2.赋值

  dateTimeBox

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

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

 

posted @ 2017-01-19 21:07  Mr_伍先生  阅读(8750)  评论(0编辑  收藏  举报