各种时间和日期选择器 可以指定具体月份或者某天等
XML/HTML Code
- <div class="mt40">
- <div>With Time Picker</span></div>
- <div class="c-datepicker-date-editor c-datepicker-single-editor J-datepicker mt10">
- <i class="c-datepicker-range__icon kxiconfont icon-clock"></i>
- <input type="text" autocomplete="off" name="" placeholder="Select" class=" c-datepicker-data-input">
- </div>
- </div>
- <div class="mt40">
- <div>With Time Range Picker</span></div>
- <div class="c-datepicker-date-editor J-datepicker-range mt10">
- <i class="c-datepicker-range__icon kxiconfont icon-clock"></i>
- <input placeholder="开始日期" name="" class="c-datepicker-data-input" value="2018-01-01 04:00:00">
- <span class="c-datepicker-range-separator">-</span>
- <input placeholder="结束日期" name="" class="c-datepicker-data-input" value="2018-03-01 04:00:00">
- </div>
- </div>
JavaScript Code
- $('.J-datepicker-range-between30').datePicker({
- isRange: true,
- between: 30
- });
原文地址:http://www.freejs.net/article_biaodan_819.html