About layui form, when no data is displayed is not null,

Very simple, just add a judge

field : 'dataOffset',
                title : '偏移量',
                event : 'detail',
                align : 'center',
                edit : 'text',
                templet : function(row) {
                    if(row.dataOffset==null){
                        return "";                        
                    }
                    return row.dataOffset;

If only need to add, when it is null, it returns a "" can be slightly

Guess you like

Origin www.cnblogs.com/a973692898/p/11640072.html