Asp.net mvc 使用jQueryAjax的Jquerymobile自动除法器
我正在jquerymobile中使用listview。我有ul标签,我正在通过ajax插入一个li列表。现在我想在listview中实现自动除法器。我该怎么做呢 我的代码是(HTML)Asp.net mvc 使用jQueryAjax的Jquerymobile自动除法器,asp.net-mvc,jquery,jquery-mobile,Asp.net Mvc,Jquery,Jquery Mobile,我正在jquerymobile中使用listview。我有ul标签,我正在通过ajax插入一个li列表。现在我想在listview中实现自动除法器。我该怎么做呢 我的代码是(HTML) 您可以在HTML代码本身中静态地指定data autodividers=“true”。如果列表为空,则没有任何区别。然后,在动态添加列表项之后,您可以执行.listview('refresh')或.listview('refresh',true) <ul id="guestlistview_Guests"
您可以在HTML代码本身中静态地指定
data autodividers=“true”
。如果列表为空,则没有任何区别。然后,在动态添加列表项之后,您可以执行.listview('refresh')
或.listview('refresh',true)
<ul id="guestlistview_Guests" class="ul_guestList"
data-role="listview"
data-theme="d">
</ul>
$('#guestlistview_Guests').attr("data-autodividers", true);
$('#guestlistview_Guests').listview('refresh');