<script type="text/javascript" src="你的layui引入的js地址"></script> <script> layui.use('table', function(){ var table = layui.table; table.render({ elem: '#test' ,cols: [[ {field:'gsmc', title: '公司名稱'} ,{field:'sqzh', title: '受權帳號'} ,{field:'sfdy',title: '是否訂閱'} ]] ,data: [{ "gsmc": "青島海信網絡科技" ,"sqzh": "0000HX0001" ,"sfdy": "已訂閱" }] }); }); </script> <div style="width:70%;margin-left:101px;"> <table class="layui-hide" id="test" ></table> </div>