easy-ui datagrid 没数据时候显示没有相关数据

onLoadSuccess: function (data) {
           if (data.total == 0) {
               $(this).datagrid('appendRow', { 字段: '没有数据' }).datagrid('mergeCells', { index: 0, field: '字段', colspan: 5 })
           }
       }

猜你喜欢

转载自blog.csdn.net/yelin042/article/details/80088629