我有一个如下表,它有 9 行。从第二行开始,行内容的格式相同。
我的要求是我必须遍历第二行到最后一行,并且在每一行中我应该能够设置第三个 div 的文本(<div class="homeLeftPaneText">want to set the text here </div>
)
<table id="__table1-table" >
<tbody>
<tr role="row" >
<th aria-owns="__column1" aria-labelledby="__column1" style=""></th>
</tr>
<tr id="__table1-rows-row0" class="">
<td id="__table1-rows-row0-col0" role="gridcell" aria-labelledby="__table1-ariadesc __column1 __html1-col0-row0" >
<div >
<div class="homeLeftPaneRow" data-sap-ui-preserve="__html1-col0-row0" id="__html1-col0-row0">
<div class="homeLeftPaneIcon homeLeftPaneStartIcon"> </div>
<div class="homeLeftPaneText"> Getting Started</div>
<div class="homeLeftPaneText">want to set the text here </div>
</div>
</div>
</td>
</tr>
<tr >
//same format as in __table1-rows-row0
</tr>
<tr id="__table1-rows-row4" >
</tr>
<tr id="__table1-rows-row4" >
//same format as in __table1-rows-row0
</tr>
<tr id="__table1-rows-row4" >
//same format as in __table1-rows-row0
</tr>
<tr id="__table1-rows-row4" >
//same format as in __table1-rows-row0
</tr>
<tr id="__table1-rows-row4" >
//same format as in __table1-rows-row0
</tr>
<tr id="__table1-rows-row4" >
//same format as in __table1-rows-row0
</tr>
</tbody>
</table>