Dynamically create jQuery Mobile page via JavaScript after clicking

前端 未结 5 1240
渐次进展
渐次进展 2021-01-30 05:39

My jQuery Mobile app consists of a single index.html page and contains only one page with a link on startup:

5条回答
  •  萌比男神i
    2021-01-30 06:28

    In this example on JSFiddle, I take an API call from Flickr and run the results through the jquery tmpl engine to append the new page to the to the document and then call $.mobile.changePage() to the newly inserted page. I think you'll see how useful the pairing of jquery tmpl + apis + jquery mobile is.

    http://jsfiddle.net/sgliser/8Yq36/5/

提交回复
热议问题