cocobear9  
一枚普通的zisuer(lll¬ω¬),努力每天多学一点点

2020年10月18日

摘要: 1.准备JSON { "code":0, "msg":"", "count":101, "data":[ { "id":"10001", "username":"杜甫", "email":"xianxin@layui.com", "sex":"1", "city":"浙江杭州", "LAY 阅读全文
posted @ 2020-10-18 21:21 cocobear9 阅读(868) 评论(0) 推荐(0) 编辑
 
摘要: 获取选中行 该方法可获取到表格所有的选中行相关数据 语法:table.checkStatus('ID'),其中 ID 为基础参数 id 对应的值(见:设定容器唯一ID),如: var checkStatus = table.checkStatus('idTest'); //idTest 即为基础参数 阅读全文
posted @ 2020-10-18 15:25 cocobear9 阅读(319) 评论(0) 推荐(0) 编辑
 
摘要: 1:监听头部工具栏事件 点击头部工具栏区域设定了属性为 lay-event="" 的元素时触发(该事件为 layui 2.4.0 开始新增)。如: <%--头部toolbar--%> <div style="display:none" id="userToolBar"> <div class="la 阅读全文
posted @ 2020-10-18 15:12 cocobear9 阅读(3992) 评论(0) 推荐(0) 编辑