首页 > Web开发 > 详细

html基础总结

时间:2018-09-25 19:16:59      阅读:197      评论:0      收藏:0      [点我收藏+]

Calendar控件点击下个月按钮后,本月标记的各个具体天的样式都取消

技术分享图片

var tabdate = [1, 5, 7];
var tabclass = ["tag", "tag", "unb"];
var cal = new Calendar({
target: ‘.calendar-wrap‘,
className: ‘cal‘,
tagDates: tabdate,
tagClass: tabclass,
todayText: ‘今天‘,
// year: 2018,
// month: 8,
onReady: function () {
},
onChangeMonthBefore: function (dateObj, type) {
tabdate = [];
tabclass = [];
this.cfg.tagDates = tabdate;
this.cfg.tagClass = tabclass;
},
//当天日期获取方法
onSelect: function (dateObj, e) {
},
onChangeMonth: function (dateObj) {
}
});

结果效果图:

技术分享图片

技术分享图片

html基础总结

原文:https://www.cnblogs.com/Ly426/p/9702375.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!