Dynamically creating jQuery Mobile pages using jQuery Templates

后端 未结 3 1065
我在风中等你
我在风中等你 2020-12-15 09:03

I am building a workout catalog using jquery mobile for the UI and jquery templates to deal with the html. I have been able to append html to an already created page AND ge

3条回答
  •  爱一瞬间的悲伤
    2020-12-15 09:18

    when you call $('#home').page(); you're asking jQuery to enhance your div with the page's specific stylesheet and the js functions. The page is already present in the DOM, but to show it you must call $.mobile.changePage("#home",options). for more information (and object-specific options), see http://jquerymobile.com/test/docs/api/methods.html

提交回复
热议问题