我遇到了JqueryMobile Scroll View的问题:
以下是代码:
function scroll_Info(json){
var scroll_Info = document.getElementById("scroll_Info");
var dt =json.results;
if (dt.length <= 0){
}
else{
$('#scroll_Info').append('<ul data-scroll="x" class="double-block-view-h">');
$('#scroll_Info').append('<ul class="view">');
scrollview = $('#scroll_Info');
for (var i=0; i<dt.length; i++){
scroll_Info.innerHTML += "<ul align='left'><ul data-scroll='x' class='double-block-view-h'><li class='square'>1</li></ul>";
}
$("#scroll_Info").scrollview();
}
}
我在ul:
中显示此信息 <ul id="scroll_Info"></ul>
但它没有正确显示,我做错了什么?