<div style="height:300px">
<table id="passwordStrategyManage"
data-url="findStrategyAction.action" class="table table-striped" >
<thead>
<tr >
<th data-checkbox=true ></th>
<th data-field="strategyId" >编号</th>
<th data-field="name">策略</th>
<th data-field="passwordSize">密码最小长度</th>
<th data-field="complicated">是否启用复杂度</th>
<th data-field="resetDay">刷新周期</th>
<th data-field="state">是否启用策略</th>
</tr>
</thead>
</table>
</div>
表格内容从后台获取 ,所有click事件只能绑定在table上,怎么获取点击行的strategyId呢?
$("#passwordStrategyManage tr").click(function(){
var html = $(this).html;
var text = $(this).text;
});
html是带标签的 text是去除了html标签的