IBM Workligt Single HTML file containing all application pages: How to load new page?
问题 Im developing a hypbrid app using IBM Workligth, with a single html file containing all application pages, like: <div data-role="page" id="page1"> //page1 specific </div> <div data-role="page" id="page2"> //page2 specific </div> How do I switch between the pages? It seems like this should be really simple, but I can't find out how. Thanks in advance. 回答1: You should probably also mention that you are using jQuery Mobile ( data-role attribute in your HTML tags...), because that's the key to