thinkphp 模板使用枚举数组
2022-11-24 11:10:29
201
{{single.collect_count}}
原文地址为:thinkphp 模板使用枚举数组

<tr>
<td>状态</td>
<td>
<php>
$status=array("1"=>"已采用","2"=>"未采用","9"=>"未设置");
</php>
{$status[$info['flag']]}
</td>
</tr>

避免再次关联数据库。




转载请注明本文地址:thinkphp 模板使用枚举数组
回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}