日历

第一种:

引用js,css

<script language=javascript src="${pageContext.request.contextPath}/js/datepicker/WdatePicker.js" defer=true></script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/datepicker/skin/WdatePicker.css" type="text/css"></link>

html代码调用:

<input name='effectivedate' id='effectivedate' type='text'  onFocus="WdatePicker({startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})" class="Wdate" readonly="readonly"/><span class="Basis_fontred">*</span>

 

第二种:

引用js

<script language="javascript"
   src="../../../js/My97DatePicker/WdatePicker.js"></script>

 

html代码:

<input name="cjTime" id="cjTime" type='text' size="12"
              readonly="readonly" value=""
              onFocus="WdatePicker({doubleCalendar:true,startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true,minDate:'%y-%M-%d'})"
              class="Wdate" onchange="" />

你可能感兴趣的:(日历)