Thinkphp6笔记十七:模板标签使用
2022-11-24 11:10:29
207
{{single.collect_count}}

Thinkphp6手册,模板标签没有太多的介绍。因为Thinkphp的内置模板引擎一直都是ThinkTemplate

thinkTemplate模板引擎地址[:https://www.kancloud.cn/manual/think-template/1286413

//1.普通调用:{$home}//2.语言包:{:lang('sex')[1]}//3.volist循环:{volist name='list' id='vo'}<li> {$vo.nickname}</li>{/volist}//4.foreach循环{foreach listaslistaskey=>$vo }{$vo.id}{/foreach}//5.eq判断标签{eq name="name" value="1"}value{/eq}

 

回帖
全部回帖({{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 ? '加载中...' : '查看更多评论'}}