问题
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