【发布时间】:2016-01-22 02:25:56
【问题描述】:
我尝试使用可编辑的引导表。在我的 jsp 页面中,我有:
<div class="row mystyle" >
<div class="col-md-10">
<table id="mytable" class="table table-hover" id="table-pagination"
data-url="data.json"
data-toggle="table"
data-pagination="true"
data-show-pagination-switch="true"
data-sort-order="desc"
data-show-export="true"
data-search="true"
data-show-toggle="true"
data-show-refresh="true"
data-show-columns="true"
data-page-list="[10, 25, 50, 100, ALL]">
<thead>
<tr>
<th data-field="id" data-align="center">id</th>
<th data-field="type" data-align="center">type</th>
<th data-field="quantity" data-align="right" data-sortable="true">cost</th>
</tr>
</thead>
</table>
</div>
我的桌子显示得很好。现在我想添加editable method。我添加了<script src="assets/js/bootstrap-table-editable.js"></script> 然后如何?我不清楚(我是新手..),我如何继续..
【问题讨论】:
标签: javascript twitter-bootstrap bootstrap-table