定义格式化方法 laytpl.formatNum = function (num) { if (!num ||'null'==num) { return ""; } return num } value="{{layui.laytpl.formatNum(item1.Sczdj)}}" 来源:oschina链接:https://my.oschina.net/tshblogs/blog/4414977 标签 laytpl layui