jQuery Mobile rendering problems with content being added after the page is initialized

后端 未结 11 2010
清酒与你
清酒与你 2020-12-14 18:54

I\'m using jQuery Mobile and Backbone JS for a project. It\'s mostly working, using jQuery Mobile\'s event \'pagebeforeshow\' to trigger the correct Backbone View. In the Ba

11条回答
  •  忘掉有多难
    2020-12-14 19:17

    It worked for me when I called .trigger('create') on the enclosing div element. See example below:

    In .html file:

    Choose as many snacks as you'd like:

    in .js file:

    $("#status-list").trigger('create');
    

提交回复
热议问题