在jQueryMobile中创建菜单的最佳方法是什么 [英] What's the best way to create a menu in jQueryMobile

查看:111
本文介绍了在jQueryMobile中创建菜单的最佳方法是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个包含菜单的应用程序,该菜单带有指向多个页面的链接,我想知道实现它的最佳方法是什么.

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中创建菜单的最佳方法是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆