0
我在我的手機應用程序中使用jqm日曆來顯示日曆。.appendTo不適用於黑莓手機應用程序
在calender下面的日曆頁面中,列表中有jqm的ul列表li項目未加載。
問題只針對黑莓設備,它在Android和iphone上的工作正常。
問題上一行:
e("<li>" + c + "</li>").appendTo(f);
我已經嘗試了所有評論的選項,但還沒有哪一個<li>
項目被加載時,在設備調試。
(function (e) {
e.jqmCalendar = function (t, n) {
function l() {
i.settings = e.extend({}, r, n);
o = e("<table/>");
var t = e("<thead/>").appendTo(o),
l = e("<tr/>").appendTo(t),
c = e("<th class='ui-bar-" + i.settings.theme + " header' colspan='7'/>");
$previous = e("<a href='#' data-role='button' data-iconpos='notext' class='previous-btn'>Previous</a>").click(function (e) {
y(new Date(i.settings.date.getFullYear(), i.settings.date.getMonth() - 1, i.settings.date.getDate()))
}).appendTo(c);
u = e("<span/>").appendTo(c);
$previous = e("<a href='#' data-role='button' data-iconpos='notext' class='next-btn'>Next</a>").click(function (e) {
y(new Date(i.settings.date.getFullYear(), i.settings.date.getMonth() + 1, i.settings.date.getDate()))
}).appendTo(c);
c.appendTo(l);
l = e("<tr/>").appendTo(t);
for (var h = 0, p = [].concat(i.settings.days, i.settings.days).splice(i.settings.startOfWeek, 7); h < 7; h++) {
l.append("<th class='ui-bar-" + i.settings.theme + "'><span class='hidden'>" + p[h] + "</span></th>")
}
a = e("<tbody/>").appendTo(o);
o.appendTo(s);
f = e("<ul data-role='listview' class='bdnamelist'/>").insertAfter(o);
console.log(f);
y(i.settings.date)
}
s.bind("change", function (t, n) {
var r = new Date(n.getFullYear(), n.getMonth(), n.getDate() + 1, 0, 0, 0, 0);
var s = i.settings.events[0];
//console.log("DEMO begin: " + n + " rows found.");
//console.log("DEMO end: " + r + " rows found.");
console.log("DEMO event: " + s + " rows found.");
f.empty();
for (var o = 0, t; t = i.settings.events[o]; o++) {
if (t[i.settings.end] >= n && t[i.settings.begin] <= r) {
var u = t[i.settings.summary],
a = (t[i.settings.begin] > n ? t[i.settings.begin] : n).toTimeString().substr(0, 5),
l = (t[i.settings.end] < r ? t[i.settings.end] : r).toTimeString().substr(0, 5),
c = t[i.settings.meb_name],
h = a + "-" + l;
//e("<li>" + c + "</li>").appendTo(f);
//e("<li>" + c + "</li>").appendTo(".bdnamelist");
e($('<li></li>').html(c)).appendTo(f);
console.log(f);
}
}
f.trigger("create").filter(".ui-listview").listview("refresh")
});