我知道无法将 JQuery 移动应用程序自动添加到主屏幕。
我读到过,最好的方法是检测应用程序是否处于全屏模式,如果没有,则给出说明。我该怎么做?
有哪些可用的跨浏览器选项?是否有任何教程/示例?
请问有人能解释一下吗?
谢谢。
最佳答案
您不能将 Web 应用程序“自动添加”到您的主屏幕,唯一的选择是:http://www.tuaw.com/2008/12/19/iphone-101-add-mobile-websites-to-home-screen/
注意:将 web 应用程序自动添加到您的主屏幕将是一件非常糟糕的事情,试想一下您访问的任何网页都可以自动将其自身添加到您的 iPhone 中。不,谢谢!!!
更新:
我想这就是您要找的:http://code.google.com/p/mobile-bookmark-bubble/ 我为此提出了一个功能请求(在新的小部件下):https://github.com/jquery/jquery-mobile/wiki/Feature-Requests
相关链接:
- Javascript for "Add to Home Screen" on iPhone?
- how to Add a Button on the home screen in android?
- How to add entry (pointing to Activity) to "Home Screen -> Menu -> Add-> Shortcuts"?
- BlackBerry - How to add content to the Home Screen?
- Install home screen widgets progrommaticly
也许通知弹出? - How to show the "add to home screen" popup window and notifications like the buildin home? - Is there a JQuery plugin for the iPhone that will notify the user to "Bookmark" their app?
关于html - JQuery Mobile 添加主屏幕选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6162070/