这不知道谁发的无限评论回复,已在基础上修改了样式,并替换了最新的框架Thinkphp3.2.3.
无限递归评论:function CommentList($pid = 0, &$commentList = array(), $spac = 0) { <br>
static $i = 0; <br>
$spac = $spac + 1; //初始为1级评论 <br>
$List = M('comment')-> <br>
field('id,add_time,author,content,pid')-> <br>
where(array('pid' => $pid))->order("id DESC")->select(); <br>
foreach ($List as $k => $v) { <br>
$commentList[$i]['level'] = $spac; //评论层级 <br>
$commentList[$i]['author'] = $v['author']; <br>
$commentList[$i]['id'] = $v['id']; <br>
$commentList[$i]['pid'] = $v['pid']; //此条评论的父id <br>
$commentList[$i]['content'] = $v['content']; <br>
$commentList[$i]['time'] = $v['add_time']; <br>
// $commentList[$i]['pauthor']=$pautor; <br>
$i++; <br>
$this->CommentList($v['id'], $commentList, $spac); <br>
} <br>
return $commentList; <br>
}
评论和回复在线演示地址:http://www.sucaihuo.com/js/557.html
Thinkphp带表情的无限评论回复.zip
( 2.91 MB 下载:278 次 )
AD:真正免费,域名+虚机+企业邮箱=0元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version
God-level code editing software (SublimeText3)