jQuery Mobile .listview('refresh') not working

前端 未结 5 1164
有刺的猬
有刺的猬 2020-12-15 10:32

I\'m building a mobile web app with jQuery Mobile and I have a problem. I am using jQuery to parse an XML file and create list items. It builds the list, then apppends that

5条回答
  •  猫巷女王i
    2020-12-15 11:15

    I ran into this problem with code looking similar to yours. My solution was to place the refresh into the $.ajax "complete" option.

            complete: function() {
                $('#list-id').listview('refresh');
            } 
    

提交回复
热议问题