IBM Worklight - Page fragmentation

走远了吗. 提交于 2019-12-02 14:39:04

问题


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.



来源:https://stackoverflow.com/questions/18654958/ibm-worklight-page-fragmentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!