<table id="demo" lay-filter="test"></table> // form layui.use('table', function()
{ var table = layui.table; var cols = [], data = []; $.ajax({url:
"/index.php?c=Api&a=getProductByCategory&cid={$data[0][classid]}", async: false,
success:function(re){ data =; cols = re.cols; }}); table.render({ elem:
'#demo' ,cols: [cols] ,data: data }); /* table.render({ elem: '#demo' ,cols:
[cols] ,url: '/index.php' ,method: 'get' ,where:
{c:'Api',a:'getProductByCategory',cid:'{$data[0][classid]}'} ,request: {
pageName: 'page' // Parameter name of page number , default :page ,limitName: '9999' // Parameter name of data amount per page , default :limit }
,parseData: function(res){ //res This is the original returned data return { "code": res.code, // Resolve interface state
"msg": res.msg, // Parsing prompt text "count": res.count, // Parsing data length "cols": res.cols, //cols
"data": // Parse data list }; } //,page: true // Display pagination //,limits: [5, 7, 10]
//,limit: 5 // Number of default displays per page }); */ });

©2020 ioDraw All rights reserved
error: (-215:Assertion failed) Solution python Simple record of network programming mac solve Enter passphrase for key Enter the password each time Huawei Hongmeng system learning notes 9- Ecological construction of developers Apple iPhone 12 Price leakage : The official highest price is close to 1 Ten thousand yuan Docker Import of containers and mirrors , export Cross analysis of data analysis Notes on core principles of reverse engineering ( One )——Hello World-1Python Student information management system ( Lite ) Ant old employees leave early and miss millions of wealth , Some people say they don't regret it