带有 Bootstrap 3、jQuery 和 phonegap 的移动应用程序,可能吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23014327/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Mobile app with Bootstrap 3, jQuery and phonegap, is it possible?
提问by MmynameStackflow
I'm trying to find out whether it's possible and doable to develop a mobile application using phonegap as a wrapper, Bootstrap for the UI and jQuery for the functionality?
我试图找出使用 phonegap 作为包装器、UI 的 Bootstrap 和功能的 jQuery 来开发移动应用程序是否可能和可行?
I could not find any projects on the internet trying this combination.
我在互联网上找不到任何尝试这种组合的项目。
Bootstrap 3 comes with the mobile-first technology. jQuery can provide all the functionality and Phonegap wrappes it all into an app.
Bootstrap 3 带有移动优先技术。jQuery 可以提供所有功能,Phonegap 将其全部封装到一个应用程序中。
My goal is to create a mobile application.
我的目标是创建一个移动应用程序。
Any experience or other ideas?
任何经验或其他想法?
采纳答案by Tamura
It's possible. Bootstrap is also great. But I think Bootstrap does't focus on mobile app but responsive web app.
这是可能的。Bootstrap 也很棒。但我认为 Bootstrap 不专注于移动应用程序,而是响应式 Web 应用程序。
Now there are many frameworks focused on rich Mobile UI.
现在有很多框架专注于丰富的移动 UI。
回答by Clawish
Yes this is perfectly possible! In this case Bootstrap would do the front-end stuff, while jQuery does the back-end.
是的,这是完全可能的!在这种情况下,Bootstrap 会做前端的事情,而 jQuery 会做后端的事情。
However, to get a framework which is well integrated and fully designed to build mobile applications, I would recommend you take a look at the ionic framework!
但是,要获得一个集成良好且完全设计用于构建移动应用程序的框架,我建议您查看ionic 框架!
ionic does the front-end and while it is based on AngularJS, Angular can undertake the back-end and totally make your life easier.
ionic 做前端,虽然它基于 AngularJS,但 Angular 可以承担后端,完全让你的生活更轻松。
回答by brianfit
Can attest this is possible. Source: I built one. Bootstrap renders much more cleanly on IOS than it does on Android, but it saves a heck of a lot of time to build once in Javascript/Jquery and then use phonegap/cordova to compile for Android and IOS. Lots of great help here at the DevGirl site too.
可以证明这是可能的。来源:我建了一个. Bootstrap 在 IOS 上的渲染比在 Android 上干净得多,但它节省了大量时间,可以在 Javascript/Jquery 中构建一次,然后使用 phonegap/cordova 为 Android 和 IOS 进行编译。DevGirl 站点上也有很多很好的帮助。
回答by gourab yousuf basir
Framework 7 has bad support for firefox browser. I had suffered a lot for that. You check out by doing this: 1.go to framework 7 official page 2.find their docs page and go to the sub header component. 3. in your firefox desktop browser you will notice the header text is not positioned in center. But in chrome you will not face this problem.
Framework 7 对 Firefox 浏览器的支持很差。我为此受了很多苦。您可以这样做: 1. 转到框架 7 官方页面 2. 找到他们的文档页面并转到子标题组件。3. 在您的 Firefox 桌面浏览器中,您会注意到标题文本未位于中心。但是在 chrome 中你不会遇到这个问题。
this is just a quick example of what i suffered of. I faced more problem with fw7. such as media list was not shoing its text properly on firefox.
这只是我遭受的痛苦的一个简单例子。我在 fw7 上遇到了更多问题。例如媒体列表没有在 Firefox 上正确显示其文本。