<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標簽的