- 1.时间选择器
//日期时间选择器laydate.render({elem: '#startTime',type: 'datetime'});WmsPreparationTask.search = function () {var queryData = {};queryData['startTime'] = $("#beginTime").val();table.reload(WmsPreparationTask.tableId, {where: queryData, page: {curr: 1}});};
- 2.页面编写
<div class="layui-inline"><input id="startTime" class="layui-input" type="text" placeholder="开始时间" autocomplete="off"/>
</div>