嗨,我使用SharePoint 2010的頁面,在這裏我有HTML snipet結構如下:jQuery中從TD抓取的innerHTML
<tr>
<td></td>
<td class="ms-vb2"></td>
<td class="ms-vb2"></td>
<td class="ms-vb2"></td>
<td class="ms-vb2"></td>
<td class="ms-vb2"><nobr><b>Sum= 72</b></nobr></td>
<td class="ms-vb2"><nobr><b>Sum= 66</b></nobr></td>
</tr>
現在我想從TD標籤值72和66在var中,以便我可以在客戶端腳本中使用這些值。
TD的「Sum =」部分不應該改變。表格的ID是由Sharepoint隨機生成的,所以我也無法做任何事情。
請幫忙。
感謝,