更新时间:2023-12-02 10:25:46
尝试以下事件,它与我的代码:
Try with following event, it works with my code:
$('[data-role=page]').live('pageshow', function (event, ui) {
$("#" + event.target.id).find("[data-role=footer]").load("footer.html", function(){
$("#" + event.target.id).find("[data-role=navbar]").navbar();
});
});
此 gist 显示整个代码。