LCalendar

功能描述

本插件是基于移动端日期时间选择控件,实现类似按时间段查询功能,可选择多种类型。

快速使用

1.引入必要的CSS与JS文件

<link rel="stylesheet" type="text/css" href="LCalendar/css/LCalendar.css" /> <script src="LCalendar/js/LCalendar.js" type="text/javascript"></script>

2.初始化插件

var calendar = new LCalendar();
calendar.init({
            'trigger': '#start_date', //标签id
            'type': 'date', //date 调出日期选择 datetime 调出日期时间选择 time 调出时间选择 ym 调出年月选择,
            'minDate': (new Date().getFullYear()-3) + '-' + 1 + '-' + 1, //最小日期
            'maxDate': (new Date().getFullYear()+3) + '-' + 12 + '-' + 31 //最大日期
        });

特别说明

详细用法见index.html

是否仍需要帮助? 请保持联络!
最后更新于 2024/04/24