Home > front end >  Layui table automatically apply colours to a drawing of how to use the done: function (res) callback
Layui table automatically apply colours to a drawing of how to use the done: function (res) callback

Time:12-11

Automatically apply colours to a drawing how to get to the done: the function returns function


 










<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'}
]]
});
  • Related