layui合计去掉小数点的问题

,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);
            });
        }

你可能感兴趣的:(js,html)