layui.render({
url:'/xxxxx'
,cols:[[
{field:'status',title:'状态'}
]]
,done:function(res, curr, count){ //res 接口返回的信息
$("[data-field = '属性名(status)']").children().each(function(){
if($(this).text() == '1'){
$(this).text("发布");
}else if($(this).text() == '1'){
$(this).text("禁用");
}
})
})
913





