fullcalendar dayClick事件


dayClick: function (date, allDay, jsEvent, view) {

//獲取到日歷控件view中的第一個日期,由於是標准時間,需要處理得到正確的時間格式
var d = new Date(date._d);
//selectdate = d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
selectdate = d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate();
//0是周日,getDay()返回數據,0是周日
//selectzhou = d.getDay();
//console.log(selectdate);
//console.log(selectzhou);
layer.open({
title: '提交日程記錄',
type: 2,
area: ['700px', '420px'],
fixed: true,
maxmin: true,
//content: '../MySports/Add'
content: 'AddCalendarEvents?date=' + selectdate
})
}

點擊某一天,dayClick事件,fullcalendar和layui完美結合,直接用layer.open事件,打開layui樣式的彈出框。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM