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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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/
Please read the above documentation to understand the difference between changePage
and load
.