我正在嘗試訪問我的流星角應用程序內的在線表格。網站上的表看起來像這樣:是否可以使用AngularJS進行網頁修補?
<table class="Grid GridBrowse">
<tbody>
<tr class="GRH">
//one of the items
<tr>
<td><a class="ItmTLnk" href="itemLink">ITEM ID</a></td>
<td>
<a class="tn1"href="itemLink"><img alt="" src="http://someLink.com/thumb.jpg" /></a>
</td>
<td class="ttC">
<div>
<a href="itemLink" class="BItmTLnk">ITEM TITLE</a>
</div>
</td>
<td class="lrt">ITEM PRICE</td>
</tr>
//end item
</tbody>
</table>
有表中的所有看起來像一個在小提琴多個<td>
項目,都具有相同的類名。我需要遍歷它們才能獲得商品ID,圖像,標題和價格。
我該如何拉入這張表,然後迭代它以獲取這些元素?
您的鏈接已中斷 – sharf
正確的鏈接是:http://jsfiddle.net/hetman/6d7tq5tw/ – Darryl