Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.5k views
in Technique[技术] by (71.8m points)

替换评论框和评论列表位置后输出错误应该如何解决?

网站原本评论框在下评论内容列表在上替换前能够正常显示,替换位置评论框在上评论列表在下后输出错误

替换位置代码如下

1605511212(1).png

未替换时如下正确提交时点击提交后显示如下:顶部第一条为最新评论

1605510878(1).png

替换位置后输出错误如下

1605511602(1).png

这是什么原因造成的?应该如何修改啊~求解答


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你直接在后台把$content['comment_code']打印出来看看结构是否正确


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...