我正在尝试在点击日历上的活动时弹出工具提示,我已经开始但如果有人能指出我正确的方向,那就太棒了。目前我得到“Uncaught TypeError:element.qtip不是函数”
var date = new Date();
var d = date.getDate(),
m = date.getMonth(),
y = date.getFullYear();
$('#calendar').fullCalendar({
height: 550,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
buttonText: {
today: 'today',
month: 'month',
week: 'week',
day: 'day'
},
events: [
<%=getcalendarevents() %>
],
eventRender: function(event, element) {
element.qtip({
content: event.description
});
},
editable: false,
droppable: false,
});