fullCanlendar

//title支持html

eventRender:function(event, element) {

element.html(event.title);

},

//新建事件
dayClick:function(date, allDay, jsEvent, view) {

varselDate =$.fullCalendar.formatDate(date,'yyyy-MM-dd');

url ='/admin/installment/instalment-daily/event?action=add&cid='+ {{ $id }} +'&date='+selDate;

window.open(url);

},

//编辑事件
eventClick:function(calEvent, jsEvent, view) {

url ='/admin/installment/instalment-daily/event?action=edit&id='+calEvent.id;

window.open(url);

}

你可能感兴趣的:(fullCanlendar)