我正在尝试使用listview刷新获取结果并在列表视图中打印。怎么了?
HTML:
<div id="div1">
<ul id="uf" data-role='listview' data-inset='true' data-filter='true' data-filter-placeholder='Pesquise...' data-theme='a'>
</ul>
</div>
AJAX:
function menu(){
$.ajax({
url: 'http://xxxxxxxx.com/vs.asp?tp=uf&q='+str,
success: function(data) {
$('#uf').append( data );
$('#uf').listview();
},
complete: function() {
$('#uf').listview('refresh');
}
});
}
vs.asp:
response.write "<li class='estados'>" & rs("estado_nome") & "</a></li>"
你能帮帮我吗?谢谢!