我的主页上有一个jqm日历页面的链接。下面的代码放在下面,因此每次用户访问页面时都会加载日历。当我从我的主页点击jqm-calendar页面链接时,我得到这个无休止的加载图标,用户没有被定向到jqm-calendar页面。
$("#games").live('pagebeforeshow', function(event, ui) {
$("#calendar").jqmCalendar({
events : [
{ "summary" : "Tryouts", "begin" : new Date("2014-09-07 00:00:00"), "end" : new Date("2014-09-07 00:00:00") },
{ "summary" : "Test event", "begin" : new Date(), "end" : new Date() },
{ "summary" : "Test event", "begin" : new Date(), "end" : new Date() } ],
months : ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
days : ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
startOfWeek : 0
});
})