优化 table 文档 (#1428)

pull/1429/head
morning-star 2023-11-21 21:38:34 +08:00 committed by GitHub
parent d309a4fce5
commit 1353098be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ layui.use(function(){
// 原生 select 事件
var tableViewElem = this.elem.next();
tableViewElem.off('change').on('change', '.select-demo-primary', function(){
tableViewElem.find('.select-demo-primary').on('change', function(){
var value = this.value; // 获取选中项 value
var data = table.getRowData(options.id, this); // 获取当前行数据(如 id 等字段,以作为数据修改的索引)