0
使用ajax渲染局部視圖,然後在成功需要顯示新的數據(哪些工作),但css沒有被應用,想法?jquery mobile ajax css刷新
$.ajax({
url: baseUrl,
type: 'GET',
data: { date: date },
success: function (response) {
$('#schedule').html(response);
},
complete:function() { $('#listId').listview('refresh');
},
});
查看
<ul data-role="listview" data-divider-theme="b" data-inset="true" id="listId">
<li data-role="list-divider" role="heading">
@Model.AppointmentDate
</li>
@foreach (var item in Model.Appointments)
{
<li data-theme="c">
<a href="/Schedule/MobileAppointmentEdit/@item.Id" data-transition="slide">
@item.StartTime @item.Name
</a>
</li>
}
</ul>
謝謝頭號人物! – 2013-03-02 11:52:56