<script SRC="https://bbs.csdn.net//res.layui.com/layui/dist/layui.js" charset="utf-8" & gt; </script>
<script>
Layui. Use (' table ', function () {
var table=layui.table;
Table. The render ({
Done: function (res, curr, count) {
console.log(res);
}
});
});
</script>
CodePudding user response:
Automatic rendering and methods for rendering can't mix like& lt; Table lay - data="HTTP://https://bbs.csdn.net/topics/{cellMinWidth height: 'full - 200:80, page: true, limit: 30, url:'/demo/table/user/' done: function (res) {layer. MSG (res); }} "& gt;
CodePudding user response:
Table. The render ({Elem: '# test',
Type: "get",
Url:
CellMinWidth: 80//global define the minimum width of conventional cell layui 2.2.1 new
Headers: {" token ": koo}
, page: true
, cols: [[
, {fixed: 'right', align: 'center', width: 300, the toolbar: '# barDemo' title: 'id'}
]]
});