Skip to content

请教一个TABLE data-key值问题。 #1797

Answered by Sight-wcg
JinyChen asked this question in 问答
Discussion options

You must be logged in to vote

这是预期的行为,这个 key 是内部实例的索引。可以通过下面的方法获取到当前表格实例的索引。

var tbInst = table.render({
  done:functon(){
    var index = this.index
  }
})
var index2 = tbInst.config.index 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JinyChen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
2 participants