码迷,mamicode.com
首页 > 其他好文 > 详细

Layui——checkbox使用

时间:2020-05-13 10:05:22      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:str   strong   col   size   使用   添加   stat   style   span   

tid = table.checkStatus(‘test‘).data;  //获取选中的value   test:table的id

// 循环添加到新的数组存起来 for(var i=0; i<tid.length;i++){ tidArr.push(tid[i].tid); }

 

tabel开启checkbox

,cols: [
                [
                    {type:‘checkbox‘}
                    ,{field:‘real_name‘, title: ‘姓名‘,sort: true}
                    ,{field:‘sex‘, title: ‘性别‘}
                    ,{field:‘phone‘, title: ‘手机号‘,sort: true}
                ]
            ]

 

Layui——checkbox使用

标签:str   strong   col   size   使用   添加   stat   style   span   

原文地址:https://www.cnblogs.com/coder1013/p/12880134.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!