【发布时间】:2017-03-26 10:06:14
【问题描述】:
我正在使用带有editable 扩展名的bootstrapTable,初始化它:
$table.bootstrapTable({
data: [JSON data from server]
});
我单击列,编辑值,完成后 - 事件 editable-save.bs.table 被调用并带有以下信息:
$table.on('editable-save.bs.table', function(editable, field, row, oldValue, $el) {
console.log("editable:", editable);
console.log("field:", field);
console.log("row", row);
console.log("oldValue", oldValue);
console.log("el", $el);
});
但是为了保存表的当前状态-我想获取表的整个数据,可以说-我想接收
$table.data 以上...
您可以看到http://jsfiddle.net/e3nk137y/12585/(打开控制台)只是为了了解您在编辑该行后收到的内容(蓝色链接是可点击的) 如何提取这些信息?
【问题讨论】:
标签: twitter-bootstrap-3 bootstrap-table