簡體   English   中英

全日歷Jquery,自動將事件插入日歷

[英]full calendar Jquery, Auto Insert Events in to the calender


var events;
events = events + "{title:'"+$("#txtEventName").val()+"',start:'2011-04-20',end:'2011-04-21',allDay:false}"

calender.fullcalendar({
   events[
          the variable here,
    ]
});

所以我想將此變量插入完整的日歷“事件”中,我想知道是否可以做到這一點?

嘗試這個:

var curEvents = [];
curEvents.push({
 title: $("#txtEventName").val(),
 start:'2011-04-20',
 end:'2011-04-21',
 allDay:false
});

calender.fullcalendar({
   events: curEvents
});

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM