Comments (1)
// 自定义字段用户需要有字段名 field: 'user'
done:function(){
var options = this;
table.getRowData = function(tableId, elem){
var index = $(elem).closest('tr').data('index');
return table.cache[tableId][index] || {};
};
$('input[name=username]').change(function () {
var data = table.getRowData(options.id, this);
data.user = $(this).val();
});
}
from layui.
Related Issues (20)
- layui 用vue动态checkbox 显示数据异常,求前端大佬帮忙看哈 HOT 5
- table中使用templet格式化时间戳得到的日期时间不匹配 HOT 2
- 日期选择范围 HOT 2
- 关于下拉菜单绑定了input输入框,关闭dropDown后,点击input还是会显示dropdown,如何取消绑定 HOT 1
- layui框架的页脚如何彻底关闭,框架页面不引入layui-footer样式,底部的区域还是有留白无法去除 HOT 1
- 2.9.9 版本的 js 函数 table.setRowChecked 参数 index 传入数组,无法选中指定行 HOT 1
- LayuiAdmin单页 事件绑定Bug HOT 1
- table 行双击事件和单击事件同时存在 执行双击事件总会连单击事件 一起执行
- layer.msg的加载图标允许自定义 HOT 5
- 颜色选择器 colorpicker 鼠标首次按下并拖动选择颜色的建议
- 关于upload组件的问题 HOT 2
- 关于upload组件,error回调函数为什不能像done 一样能获取到用户自定义的返回值呢,不太方便 HOT 1
- 关于复选框提交后台数据问题 HOT 1
- 升级2.9.10后,Tab 里面的echarts图表无法显示 HOT 4
- 请问<input type="checkbox">如何实现禁止修改,又不会像添加disabled属性那样变灰? HOT 3
- laytpl能更好用! HOT 2
- treeTable调用reload方法之后显示无数据 HOT 1
- layui.util事件委托“event”已弃用 HOT 3
- 调用treeTable.reload方法之后丢失树表数据 HOT 2
- csp 问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from layui.