Layui:数据表格的基础方法

  1. >table.set(options); //设定全局默认参数。options即各项基础参数
  2. > table.on('event(filter)', callback); //事件监听。event为内置事件名(详见下文),filter为容器lay-filter设定的值
  3. > table.init(filter, options); //filter为容器lay-filter设定的值,options即各项基础参数。例子见:转换静态表格
  4. > table.checkStatus(id); //获取表格选中行(下文会有详细介绍)。id 即为 id 参数对应的值
  5. > table.render(options); //用于表格方法级渲染,核心方法。应该不用再过多解释了,详见:方法级渲染
  6. > table.reload(id, options); //表格重载
  7. > table.resize(id); //重置表格尺寸
  8. > table.exportFile(id, data, type); //导出数据
posted @ 2020-04-09 10:33  猩猩侠  阅读(538)  评论(0编辑  收藏  举报