Layui Table获取当前第几行 如 table.on(‘edit(text)’,function(obj){ //写上 console.log($(this).parents(‘tr’).data(‘index’)); })