我正在尝试将现有的phonegap 项目迁移到worklight 中。 Phonegap 应用程序使用 $.mobile.changePage() 进行页面导航。这个函数会重新加载现有的 DOM 还是创建一个新的 DOM。由于worklight建议使用单个DOM对象,如果我使用$.mobile.changePage(),它会对worklight应用程序行为产生任何影响。
请阅读以下内容IBM Worklight 入门 http://www.ibm.com/developerworks/mobile/worklight/getting-started.html培训模块:构建多页面应用程序 http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/03_02_Building_a_multi_page_application.pdf (示例项目 http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/BuildingMultiPageApplicationProject.zip).
jQuery.mobile.changePage()
http://api.jquerymobile.com/jQuery.mobile.changePage/ http://api.jquerymobile.com/jQuery.mobile.changePage/
.load()
http://api.jquery.com/load/ http://api.jquery.com/load/
请阅读上述文档以了解两者之间的区别changePage
and load
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)