【发布时间】:2016-12-09 18:03:05
【问题描述】:
我正在尝试遍历 Jquery Bootgrid 表中的项目列表并提取要在其他地方使用的值。这是我的伪代码:
for (each row in or-table) {
var code = the value in data-column-id="code";
var latitude = the value in data-column-id="lat";
var longitude = the value in data-column-id="long";
Console.log("code: " + code);
Console.log("latitude: " + latitude);
Console.log("longitude: " + longitude);
}
<table id="or-table" class="table table-condensed table-hover table-striped" data-toggle="bootgrid">
<thead>
<tr>
<th data-column-id="code" >Symbol Code</th>
<th data-column-id="lat" >Latitude</th>
<th data-column-id="long" >Longitude</th>
</tr>
</thead>
<tbody></tbody>
</table>
我只想遍历表中的行并将单元格中的值保存到变量中。我一直找不到使用 Bootgrid 的示例。
【问题讨论】:
标签: javascript jquery jquery-bootgrid