00036-layui table total row remove the decimal point (.00)

Processing method: directly use html to process elements, and process
in the done method of table:

,done: function(res, curr, count){
                var divArr = $(".layui-table-total div.layui-table-cell");
                $.each(divArr,function (index,item) {
                    var _div = $(item);
                    var content = _div.html();
                    content = content.replace(".00","");
                    _div.html(content);
                });
            }

Guess you like

Origin blog.51cto.com/14816966/2535152