1.0.1 • Published 3 years ago

tx_calendar v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

const TXCalendar = require('tx_calendar')

方法一:var calendar= new TXCalendar($num,get); $num代表你要返回的日历有几页,默认从当前月份开始,get是回调方法;

get回调返回一个数组,对象里的year代表年份,month代表月份,limit代表当前月份第一天对应的是星期几,

比如返回的month是2,limit是2那就代表2月1日是星期二,daylist代表当前moth对应的天数数组,因为日历一般是宫格布局,所以返回天数数组的

空字符则代表上个月月底的几天

方法二:calendar.dateInit($year,$month,callback); 返回指定年月的日期列表