http://www.jianshu.com/p/a7056b023df0
js onclick 传值
<table class="table table-striped" style="width:80%;margin:0px auto;">
<thead>
<tr>
<th>全选</th>
<th>产品</th>
<th>付款日期</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr th:each="user : ${userList}">
<td></td>
<td th:text="${user.id}">id</td>
<td th:text="${user.name}">name</td>
<td th:text="${user.age}">age</td>
<td>
<button type="button" class="btn btn-primary btn-sm"
th:οnclick="'javascript:updateInf('+${user.id}+')'">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>修改
</button>
<button type="button" class="btn btn-primary btn-sm"
th:οnclick="'javascript:deleteInf('+${user.id}+')'">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
</button>
</td>
</tr>
</tbody>
</table>