问题描述
我阅读了许多引导程序与 jQuery 移动"的文章.很明显,他们都有不同的目标.那么如何将它们结合起来呢?
I have read many "bootstrap vs. jQuery mobile" articles. It is quite clear that they both have different aims. So what about combining them?
除此之外,我喜欢引导程序的响应式布局功能.另一方面,我也喜欢页面"方法以及 jQuery mobile(包括滑动事件等)和转换的可能性.
Besides other, I like the responsive layout features of bootstrap. On the other hand I also like the "page" approach and the possibilities of jQuery mobile (including swipe events etc.) and transitions.
是否有将两者结合的专业项目?或者有人尝试这样做但失败了?
我知道在 jQuery Mobile 中使用 Bootstrap 看起来像一个类似的问题,但它是过时(参考引导程序 2).
I know Using Bootstrap with jQuery Mobile looks like a similar question but it is outdated (refering to bootstrap 2).
推荐答案
结论对于复杂的项目,我不建议将 JQuery Mobile 和 Bootstrap 结合使用.
ConclusionI would not recommend combining JQuery Mobile and Bootstrap for complex projects.
JQM 知识我们正在使用 JQuery Mobile (JQM) 框架构建一系列复杂的 Web 应用程序.我们花了一年多的时间来制作这个,现在对 JQM 有了相当合理的了解.
JQM KnowledgeWe are building a series of sophisticated web application all using the JQuery Mobile (JQM) Framework. We have spent over a year producing this and now have pretty reasonable knowledge of JQM.
优点:一些功能非常有用,例如持久的页脚和移动友好的组件,它们使 HTML5 应用程序具有非常原生的感觉.缺点:我们不得不禁用 JQM 的许多功能,例如预加载页面以创建我们所需的复杂功能.
Positives: Some of the features are useful such as persistent footers and the mobile friendly components which give the HTML5 app a pretty native feel.Negatives: We have had to disable quite a lot of features of JQM such as preloading pages to create the complex functionality we required.
最终结果很好,因为我们已经让 iOS 开发者误以为它是原生的.
The end result is good as we have fooled iOS developers into thinking it was native.
引导程序知识我最近还使用引导程序制作了一个响应式网站来宣传上述 JQM 产品,并且效果很好(http://www.sure-sense.com).
Bootstrap KnowledgeI have also recently produced a responsive website using bootstrap to advertise the above JQM product and that has worked out very well (http://www.sure-sense.com).
组合我尝试将引导程序与仪表板应用程序上的 JQM 项目结合起来,但这很快就凸显了这两个框架不兼容.JQM 的 CSS 标记了引导程序 CSS 之上的组件,结果是一些组件看起来像 JQM,而其他组件看起来像引导程序.
The ComboI tried to combine the bootstrap with the JQM project on a dashboard application but that has quickly highlighted that the 2 frameworks are not compatible. The CSS of JQM marks up the components on top of the bootstrap CSS and the results are some components looking like JQM and others like bootstrap.
这篇关于我可以将 bootstrap 3 与 jQuery Mobile 一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!