【发布时间】:2016-02-15 14:22:57
【问题描述】:
在Bootstrap Table ,一个字段有锚标签,所以当点击我可以得到父行的数据索引。现在我想使用 data-index
获取完整的行数据 $(document).on('click', '.delete_icon', function(event) {
var index = $(this).parent().parent().data('index');
//Get the complete row data by using the dataindex
// Row has three fields
});
我无法使用 data-uniqueid 来获取数据,因为我的唯一 ID 是字符串,例如 #1:1、#1:2 等
【问题讨论】:
-
能否提供 HTML 标记?
标签: javascript twitter-bootstrap bootstrap-table