我使用Phonegap为Android和iPhone等移动设备创建了一个fullcalendar应用程序.我正在使用Jquery Touch Punch插件和Jquery fullcalendar插件.fullcalendar的'select'方法在网上运行良好.我可以在Web浏览器上的完整日历的月视图中选择多个单元格.但是,在原生的android/iPhone应用程序上,我无法选择日历的多个单元格(日期范围).所有这一切都发生在我单击单元格以选择日期范围时,然后在允许我在设备上选择多个日期之前触发"选择"方法.反正有没有克服这个问题?先感谢您.这是Jsfiddle.
示例代码:
// FullCalendar v1.5
// Script modified from the "theme.html" demo file
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month'
},
editable: true,
disableDragging: true,
disableResizing: true,
droppable: true,
drop: function( date, allDay, jsEvent, ui ){
console.log(jsEvent);
console.log(ui);
},
// add event name to title attribute on mouseover
eventMouseover: …
Run Code Online (Sandbox Code Playgroud) jquery jquery-plugins jquery-selectors fullcalendar jquery-mobile