我將項目添加到列表中,但它們不是連接的類。如何增加清關?我使用listview縮略圖。jquery移動添加類的元素
<div class="content-primary" >
<ul data-role='listview' id="games_list"><li>
<a href='index.html'>
<img src='images/default.png'/>
<h3>aaaaaaaaa</h3>
<p>bbbbbbb</p>
</a>
</li>
</ul>
</div>
和腳本:
for (i = 0; i < response.data.length; ++i)
{
games_list += "<li>\r\n\t<a href='index.html'>\r\n\t\t<img src='images/"+response.data[i].icon+"'/>\r\n\t\t<h3>"+response.data[i].name+"</h3>\r\n\t\t<p>"+response.data[i].description+"</p>\r\n\t</a>\r\n</li>\r\n";
}
$("#games_list").append(games_list);
games_list collect and append - added all! response.data.length - 來自sql查詢的金額行。 + =操作 – Alex 2012-08-03 14:56:39