我正在开发一个包含菜单的应用程序,该菜单带有指向多个页面的链接,我想知道实现它的最佳方法是什么.
I'm developing an application that contains a menu with links to the several pages and I would like to know what's the best way to implement it.
一种解决方案是在所有页面上创建菜单通过JavaScript,但是当所有页面只有一个全局页面时,它将复制菜单.
One solution is to create the menu on all pages via JavaScript, but it would duplicate menus when it should have just one global to all pages.
另一种解决方案将是在框架,但这种方式不会充分利用框架的功能.
Another solution would be to create a div outside the framework but this way would not be taking any advantage of the features of the framework.
推荐答案我为此专门准备了此帖子这个问题,它处理固定页眉和页脚的问题较少(因为我一般认为它们是对本来已经有限的房地产的误导性浪费),而更多地是关于处理全球导航.希望这可以帮助.
I prepared this post specifically for this question, It deals less with fixed headers and footers (since I generally believe them to be misguided wastes of already limited real estate) and more about dealing with global navigation in general. Hope this helps.
更多推荐
在jQueryMobile中创建菜单的最佳方法是什么
发布评论