阅读背景:

使用jQuery Ajax在同一个jQuery移动站点上加载两个不同的div

来源:互联网 

Here is a tricky project I got at college that the instructor never got around to giving us the solution to. It was to load a multi-page jQuery mobile site dynamically using jQuery Ajax XML parser. Firstly I had to load the unordered list with list items from an xml file that would be used as links. Then I had to load all the seperate pages from the xml as well these pages would have ids and be called by the links in the unordered list. The question is how do I load two seperate items on the same site, does it require seperate calls to the xml. Also is it actually possible to populate a container div with dynamically loaded "div data-role=page(s)". Here is my script that is contained in the head with the attempt at loading data-role-pages greyed out. Also the html and the xml.Here is a tricky project I got at college that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: