My97DatePicker控件调用
引用My97DatePicker,在要使用的jsp页面中引入js,如下
<script type="text/javascript" src="<%=request.getContextPath() %>/dd/js/My97DatePicker/WdatePicker.js"></script>
调用My97DatePicker,如下
//格式:2012-09-12
<input id="endDate" readonly="readonly" onfocus="WdatePicker({isShowWeek:true})" />
//格式:2012-09-12 12:23:22
<input id="endDate" readonly="readonly" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'2008-03-08 11:30:00',maxDate:'2100-03-10 20:59:30'})"
/>
<input class="Wdate" type="text" id="pageEndTime" style="width: 150px;"
onFocus="WdatePicker({isShowClear:true,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})" />