jsp页面,table添加首列序列号

<logic:present name="listResult">
        <logic:iterate id="obj" name="listResult" indexId="number">
          <tr>
              <td align="center">
                  ${number }
              </td>
              <td align="center">
                  ${obj.name}
              </td>
          </tr>
        </logic:iterate>
</logic:present>

 

你可能感兴趣的:(table)