引自:http://blog.sina.com.cn/s/blog_025270e901016lst.html
jquerymobile动态添加元素之后有些不能被正确渲染的解决方法:
listview: 添加 jq(".detail").listview("refresh");
div或其他: 添加.trigger( "create" );
jq(".detail:eq("+ix+1+")").append("<li>"+data.linete[i].S_Station+data.linete[i].D_Station+data.linete[i].S_Time+data.linete[i].D_Time+data.linete[i].distance+"</li>");
});
jq(".detail").listview("refresh")
jq("#container").append("<div
data-role='collapsible' data-collapsed='true' class='info'
data-transit='"+window.tranResult.getLo(i)+"'
data-source='"+tran.getSource()+"'data-destination='"+tran.getDestination()+"'><h2>"+window.tranResult.getLo(i)+"</h2><ul
data-role='listview' data-inset='true'
class='detail'>
</ul><ul
data-role='listview' data-inset='true'
class='detail'></ul></div>").trigger(
"create" );