mis*_*sty 6 jquery fullcalendar
使用 Fullcalendar 插件,有什么方法可以删除已完成的任务(至少使用<strike>标签)。我正在从数据库中取出任务,并将结果传递到json_encode().
小智 0
你可以创建一个类:
<style>
.strike-class{
text-decoration: line-through;
}
</style>
Run Code Online (Sandbox Code Playgroud)
然后在元素中将类添加到事件中:
eventRender: function(event, element){
if (completed) {
element.addClass("strike-class");
element.children().addClass("strike-class");
}
}
Run Code Online (Sandbox Code Playgroud)