IBM Worklight - 页面碎片 [英] IBM Worklight - Page fragmentation
问题描述
我正在尝试将现有的phonegap项目迁移到工作区。 Phonegap应用程序使用$ .mobile.changePage()进行页面导航。此函数是否会重新加载现有DOM或创建新DOM。由于worklight建议使用单个DOM对象,如果我使用$ .mobile.changePage()它会对worklight应用程序行为产生任何影响。
I am trying to migrate existing phonegap project into worklight. Phonegap app is using $.mobile.changePage() for page navigation. Will this function reload the existing DOM or creates a new DOM. As worklight suggest to use single DOM object, if I use $.mobile.changePage() will it have any impact on worklight application behaviour.
推荐答案
请阅读以下 IBM Worklight入门培训模块:构建多页应用(示例项目)。
Please read the following IBM Worklight Getting Started training module: Building a multi-page app (sample project).
jQuery.mobile.changePage()
http://api.jquerymobile.com/jQuery.mobile.changePage/
.load()
http://api.jquery.com/load/
请阅读上述文档以了解其中的差异在 changePage
和之间加载
。
Please read the above documentation to understand the difference between changePage
and load
.
这篇关于IBM Worklight - 页面碎片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!