基本信息
源码名称:好用的日期组件calendar.js
源码大小:0.06M
文件格式:.zip
开发语言:js
更新时间:2020-12-09
   源码介绍

<div class="calendar">
   
<div class="outer clearfix" id="calendarcontainer">     //日历控件容器
</div>
   
</div>    



涉及到的js文件:
1.Calendar.js      地址 :http://bj.tourex.net.cn/js/Calendar.js
2.jquery.js(这个要打开看看,里面的内容并不是jQuery) 地址:http://bj.tourex.net.cn/sys/js/jquery.js
3.jquery.validate.check.js 地址:http://bj.tourex.net.cn/sys/js/jquery.validate.check.js
4.line.js(日历月显示调用函数就在这个里面)    地址:http://bj.tourex.net.cn/js/line.js
5.myfocus-2.0.4.min.js 地址:http://bj.tourex.net.cn/js/plugin/myfocus-2.0.4.min.js



核心的调用代码如下(该函数可能还需要和另外的js配合使用。):
CreateCalendar(c, y, m, a, b,d, f,fu)   
参数说明:  c:容器,
                    y:年,
                    m:月,
                    a:出发时间XML,
                    b:参团人群,
                    d:是否天天发团,
                    f:是否显示双日历,
                    fu:回调

使用例子:
1. CalendarPage('calendarcontainer',2014,4); //显示4、5月份日历
2.CalendarPage('calendarcontainer',2014,2); //显示2、3月份日历
记得para对象不要修改名称和属性