87,964
社区成员
发帖
与我相关
我的任务
分享
<table id="tt_instock"></table>
<div id="tbs" style="padding: 5px 0">
<label for="txtInStockTime1">入库日期范围:</label>
<input id="txtInStockTime1" name="txtInStockTime1" class="easyui-datebox" />
</div>
<script type="text/javascript">
$(function ()
{
$.parser.parse($('#tbs'));
//debugger;
initData();
});
function initData()
{
var ff = $('#txtInStockTime1');
console.log(ff);
console.log(ff.datebox('getValue'));
ff.datebox('setValue', '2015-09-01');
console.log(ff.datebox('getValue'));
}
</script>
ff.datebox();//先初始化组件先
ff.datebox('setValue', '2015-09-01');
console.log(ff.datebox('getValue'));