Layui Table Data Example 获取数据 layui.use(['table'], function() { var table = layui.table; // 渲染表格 table.render({ elem: '#demo', url: '/data.json', // 数据接口 cols: [[ {field: 'id', title: 'ID', width: 80}, {field: 'name', title: '姓名', width: 120}, {...
- 查询 var $, form, laydate, layer; layui.use(['laydate', '