<#list holderShare.holderShareRespVos as holderShares> <tr height='33' style='mso-height-source:userset;height:25.05pt'> <td height='33' class='x68' style='height:25.05pt;'></td> <td class='x75'>${holderShares.}</td> <td class='x75'>${holderShares.}</td> <td class='x75'>${holderShares.}</td> <td class='x75'>${holderShares.}</td> <td class='x75'>${holderShares.}</td> <td class='x75'>${holderShares.}</td> <td class='x76'>${holderShares.}</td> <td class='x76'>${holderShares.}</td> <td class='x76'>${holderShares.}</td> <td class='x75'>${holderShares.}</td> <td></td> </tr> </#list>,我怎么获取holderShares的index下标呢
时间: 2024-04-11 18:27:19 浏览: 142
2.2.36 CSS列表属性(一)列表项目符号:list-style-type.docx
要获取`holderShares`的索引下标,你可以使用内置的`?index`属性来实现。在你的代码中,可以在`${holderShares.}`后面使用`?index`来获取索引下标。以下是修改后的代码示例:
```html
<#list holderShare.holderShareRespVos as holderShares>
<tr height='33' style='mso-height-source:userset;height:25.05pt'>
<td height='33' class='x68' style='height:25.05pt;'></td>
<td class='x75'>${holderShares?index}</td> <!-- 获取索引下标 -->
<td class='x75'>${holderShares.}</td>
<td class='x75'>${holderShares.}</td>
<td class='x75'>${holderShares.}</td>
<td class='x75'>${holderShares.}</td>
<td class='x75'>${holderShares.}</td>
<td class='x76'>${holderShares.}</td>
<td class='x76'>${holderShares.}</td>
<td class='x76'>${holderShares.}</td>
<td class='x75'>${holderShares.}</td>
<td></td>
</tr>
</#list>
```
在`${holderShares?index}`处,通过`?index`属性获取到了`holderShares`在列表中的索引下标。请根据你的实际需求将其应用到你的代码中。
阅读全文