1
2
3
4
5
Title6
7
8
9
10
11
12 (function() {13 layui.use(['table','layer'],function() {14 vartable=layui.table;15 varlayer=layui.layer;16 var$=layui.jquery;17 table.render({18 id:"tableID"//设定表格的唯一ID进行标识
19 , elem:'#tableDataLoad'//绑定table对应的元素
20 , height:'full-300'
21 , url:'data2.json' //TODO: 此处写你实际数据来源
22 , size:'sm'
23 , page:true
24 , limits: [10,20,30,40,50]25 , limit:30
26 , cols: [[27 {field:'match_name', width:93, align:'center', title:'比赛名称', rowspan:2}28 , {align:'center', title:'比赛信息', colspan:3}29 , {field:'jingcai', width:200, align:'center', title:'竞猜项', rowspan:2}30 , {field:'num', width:100, align:'center', title:'