jQuery Mobile - listview() with data-filter=“true” and ajax content
问题 This is my html: <ul data-role="list-view" data-filter="true"></ul> My JS loads the ul with data and then I call listview(). $('#page').live('pagebeforecreate', function(){ // My Ajax code }); $('#page').live("pageinit", function(){ $('#page ul').listview(); }); That works except the search bar at the top doesn't appear. What am I missing? 回答1: You have data-role="list-view" When the right way is data-role="listview" that is why the search bar at the top doesn't appear. 回答2: I think you need