<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
var data = {{data|tojson}};
$(function() {
$('#table').bootstrapTable({
data: data
});
});
});//]]>
</script>
</head>
<body>
<div class="container" style="padding: 10px; ">
<br>
<table id="table" data-toggle="true" data-show-columns="true" data-pagination="true" data-height="500">
<thead>
<tr>
<th data-field="name" data-sortable="true">Repo</th>
<th data-field="commits" data-sortable="true" >commits</th>
<th data-field="attention" data-sortable="true">attention</th>
<th data-field="uneven" data-sortable="true">uneven</th>
<th
</tr>
</thead>
</table>
</div>
此代码呈现json数据并将其放入引导表中。我想在每一行中添加一个按钮,以便在单击时我可以将用户发送到新页面。
我该怎么做?