属性类型 | 属性名称 | 属性编码 | 是否附加属性 | 操作 |
---|
整个关键在于:row.rowIndex巧好等于table.tBodies[0].row[index]这里的行索引数+1!!!
注意:
1,table.tBodies[0].row[index]代表实际的行。这里的index指的是当前表格试图的从0开始的索引号。
tableObject.deleteRow(index)
Value Description
index An integer that specifies the position of the row to delete (starts at 0). The value of -1 can also be used; which result in that the last row will be deleted.2,row.rowIndex:
The rowIndex property returns the position of a row in the collection of a table.