【发布时间】:2018-07-04 10:52:33
【问题描述】:
我在 Github 上使用 wenzhixin 的 bootstrap-table 就是这个
我想在刷新时将表设置从 clickToSelect: true 更改为 clickToSelect: false
这是我的代码:
HTML
<html>
<button id="refresh"> Refresh
</button>
<table id="table">
</table>
<html>
JAVASCRIPT
$(function () {
$('#table').bootstrapTable({
method: 'get',
url:"http://139.199.18.128/Home/GetJSON2",
clickToSelect: true,
columns: [
{ checkbox: true },
{ field: "name", title: "lon"},
{ field: "customID", title: "level"}
]
});
$("#refresh").click(function () {
$("#table").bootstrapTable("refresh",
{
});
});
});
$("#table").bootstrapTable("refresh",
{ method: 'post',
url: "myUrl",
clickToSelect: false
});
我希望我能得到一个解决方案。 谢谢。
【问题讨论】:
-
bootstrap-table by wenzhixin 在 Github 上是这个one
标签: javascript asp.net asp.net-mvc twitter-bootstrap bootstrap-table