ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 最新评论组件制作 ```html <php>$last_comments=sp_get_comments("field:*;limit:0,5;order:createtime desc;");</php> <foreach name="last_comments" item="vo"> <div class="comment-ranking-inner"> <i class="fa fa-comment"></i> <a href="{:U('user/index/index',array('id'=>$vo['uid']))}">{$vo.full_name}:</a> <span>{$vo.content}</span> <a href="__ROOT__/{$vo.url}#comment{$vo.id}">查看原文</a> <span class="comment-time">{:date('m月d日 H:i',strtotime($vo['createtime']))} </span> </div> </foreach> ```