更新时间:2023-01-06 07:43:29
尝试这篇文章,它将一个公共页脚附加到所有页面上,形成一个公共html文件.
Try this post, it appends a common footer to all the pages form a common html file.
$('[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()
});
});
有关更多信息,请参阅此帖子- Jquery Mobile在不同页面上的相同页脚
For more info refer this post - Jquery Mobile Same Footer on Different Pages