<script type="text/javascript">
$(function () { //考虑你header和footer都存在 var activePage = $.mobile.activePage;var activePagefixed_h = $("[data-role=header]").fixedtoolbar(); var activePagefixed_f = $("[data-role=footer]").fixedtoolbar();//调用插件的hide api activePagefixed_h.hide(); activePagefixed_f.hide(); });</script>

本文介绍了一种使用jQuery插件隐藏页面中带有特定角色属性的Header和Footer的方法。通过调用hide API实现,适用于希望精简用户界面的设计者。
882

被折叠的 条评论
为什么被折叠?



