JS WdatePicker

  |  
阅读次数
  |  
字数 87
  |  
时长 ≈ 1 分钟
1
2
3
4
5
6
7
8
9
10
<div class="timeSelect reportDate">
  <span>查询时间:</span>
  <input type="text" class="datetime" id="timeStart"
    onclick="WdatePicker({isShowClear:false,dateFmt :'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'timeEnd\')||\'%y-%M-%d\'}',onpicked:filter})"
    name="timeStart" readonly="readonly" value="${timeStart}"/>
  <span></span>
  <input type="text" class="datetime" id="timeEnd"
    onclick="WdatePicker({isShowClear:false,dateFmt :'yyyy-MM-dd',minDate:'#F{$dp.$D(\'timeStart\')}',maxDate:'%y-%M-%d',onpicked:filter})"
    name="timeEnd" readonly="readonly" value="${timeEnd}"/>
</div>