我正在使用以下代码段:
function fetchContent()
{
//do something
$.mobile.changePage("#toTheTargetPage");
}
$("#toTheTargetPage").live('pagebeforeshow', function() {
$.mobile.showPageLoadingMsg("a", "Please wait", false);
renderTheContent();
$.mobile.hidePageLoadingMsg();
});
function renderTheContent()
{
//populate dynamic list view using the content
}
但它没有显示加载程序。而且它也不会在第一次加载时显示列表视图。如果我返回并再次返回,只有这样才会显示内容。
我哪里错了?
注意:使用 jquery Mobile 1.2.0