jquerymobile动态插入list节点的改进

在正式发布的alpha1版本中,动态插入的list节点是没有"样式的",而且list又没有类似 customButton的东东,不过看来下个版本应该会解决这个问题了,官方论坛已经有了回音

 

This seems to have been resolved with the following commit.


http://github.com/jquery/jquery-mobile/commit/1cbdc76d08625453d816cc13fe0ab7aea67d2c05

 
The above code would simply be changed to the following for it to work.
 
$("#question-add").click(function() {
      $("<li></li>")
            .text("Testing")
            .insertAfter($("#questions-divider"));
      $("#questions").listview("refresh"); // This line now updates the listview
});
 

 

你可能感兴趣的:(list,节点,动态,改进,jquerymobile)