<table class="table-hover"
id="dataTable"
data-class="table table-hover"
data-sort-name="createTime"
data-sort-order="desc"
data-query-params="listParams"
data-toggle="table"
data-url="listData"
data-side-pagination="server"
data-pagination="true"
>
<thead>
<tr>
<th data-field="userId" data-align="center">用户id</th>
<th data-field="userName" data-align="center">用户名称</th>
<th data-field="title" data-align="center" data-formatter="titleFormatter">主题</th>
</tr>
</thead>
</table>
$(function () {
$('#dataTable').on('click-row.bs.table', function (e, row, element)
{
//$(element).css({"color":"blue","font-size":"16px;"});
console.log(row);
});
})