云主机测评网云主机测评网云主机测评网

云主机测评网
www.yunzhuji.net

如何在织梦模板中确保title标签完整显示标题信息?

织梦模板中,要显示完整的标题(title),可以使用以下方法:,,1. 打开织梦后台,进入模板管理。,2. 找到需要修改的模板文件,如index.htm。,3. 在模板文件中,找到`标签。,4. 将标签替换为{dede:field name=’title/title’/}`。,5. 保存修改后的模板文件。,,这样,织梦模板中的title标签就会显示完整的标题了。

在织梦CMS(DedeCMS)中,默认情况下,文章页面的标题标签 `

` 通常只显示文章的标题,为了SEO优化和更好的用户体验,你可能希望在 `<title>` 标签中包含网站名称或其他信息,本文将详细介绍如何在织梦模板中配置 `<title>` 标签以显示完整的标题。 <p>### 方法一:修改模板文件</p> <p>1. **找到并编辑 `head.htm` 文件</p> <p> 在织梦CMS的模板目录中找到 `head.htm` 文件,这个文件通常位于 `/templets/default/` 或你正在使用的模板文件夹中。</p> <p> 打开该文件,找到 `</p><title>` 标签。

2. **添加代码以动态生成标题

使用以下代码示例来替换现有的 `

` 标签: <p> “`html</p> <p></p><title>{dede:field name=’title’/} {$cfg_webname}

“`

这段代码会将文章的标题与网站名称一起显示,`{$cfg_webname}` 是一个系统变量,表示网站的全名。

3. **保存并上传文件

保存对 `head.htm` 文件的更改,并将其上传回服务器。

### 方法二:使用自定义标签功能

1. **登录织梦CMS后台

使用管理员账户登录到织梦CMS的管理界面。

2. **创建新的系统变量

在后台管理菜单中,选择“模板” > “模板管理” > “标记管理”。

点击“新增变量”,创建一个新变量,`full_title`。

3. **设置变量值

在“变量说明”中填写描述,完整标题”。

在“变量内容”中输入以下内容:

“`html

[field:title /] {$cfg_webname}

“`

保存设置。

4. **在模板文件中引用新变量

在需要显示完整标题的地方,使用以下代码:

“`html

{dede:php}echo $full_title;{/dede:php}

“`

这种方法允许你在后台动态更新标题格式,而无需直接编辑模板文件。

### 注意事项

**确保缓存已更新**:每次修改模板文件后,确保清理并更新织梦CMS的缓存,以便看到更改的效果。

**备份文件**:在进行任何修改之前,建议备份相关的模板文件,以防万一出现问题时可以恢复。

### FAQs

#### Q1: 如果我想在标题中加入其他信息,比如当前栏目的名称,该如何操作?

A1: 你可以在 `

` 标签中使用更多的系统变量来实现这一点。 <p>“`html</p> <p></p><title>[field:title /] {dede:field name=’typename’/} {$cfg_webname}

“`

这里 `{dede:field name=’typename’/}` 会输出当前栏目的名称。

#### Q2: 我如何为首页和分类页设置不同的标题格式?

A2: 你需要根据不同的页面类型编写条件语句,对于首页和分类页,可以在 `head.htm` 文件中添加如下代码:

“`html

{dede:if channelid=0}

{$cfg_webname}

{/dede:if}

{dede:if channelid!=0}

{dede:field name=’typename’/} {$cfg_webname}

{/dede:if}

“`

这样,当访问首页时,`

` 标签只会显示网站名称;而访问分类页时,会显示分类名称和网站名称,通过以上方法和注意事项,你可以灵活地在织梦CMS中配置 `<title>` 标签,以显示更符合你需求的完整标题。</article> <div class="post-actions"> <a href="javascript:;" class="action action-rewards" data-event="rewards"><i class="tbfa"></i> 打赏</a> </div> <div class="post-copyright-custom">版权声明:主机测评不销售、不代购、不提供任何支持,仅分享信息/测评(有时效性),自行辨别,请遵纪守法文明上网。 <br>文章名称:《如何在织梦模板中确保title标签完整显示标题信息?》 <br>文章链接:<a href="https://www.yunzhuji.net/yunfuwuqi/252220.html">https://www.yunzhuji.net/yunfuwuqi/252220.html</a> </div> <div class="article-tags"> <a href="https://www.yunzhuji.net/tag/3_%E5%AE%8C%E6%95%B4%E6%98%BE%E7%A4%BA/" rel="tag">完整显示</a> <a href="https://www.yunzhuji.net/tag/3_%E6%A0%87%E9%A2%98%E6%A0%87%E7%AD%BE/" rel="tag">标题标签</a> <a href="https://www.yunzhuji.net/tag/3_%E7%BB%87%E6%A2%A6%E6%A8%A1%E6%9D%BF/" rel="tag">织梦模板</a> </div> <nav class="article-nav"> <span class="article-nav-prev">上一篇<br><a href="https://www.yunzhuji.net/yunfuwuqi/252219.html" rel="prev">如何在织梦模板中利用JavaScript实现浏览历史的记录与调用?</a></span> <span class="article-nav-next">下一篇<br><a href="https://www.yunzhuji.net/yunfuwuqi/252228.html" rel="next">如何有效地利用织梦标签生成会员列表?</a></span> </nav> <div class="relates relates-imagetext"> <div class="title"> <h3>相关推荐</h3> </div> <ul> <li><a href="https://www.yunzhuji.net/yunfuwuqi/249018.html"><img data-src="/pic/10_249018.jpg" alt="如何确保在织梦中显示完整的URL链接地址?" src="/view/hfdr_dux/img/jz.png" class="thumb"></a><a href="https://www.yunzhuji.net/yunfuwuqi/249018.html">如何确保在织梦中显示完整的URL链接地址?</a></li> <li><a href="https://www.yunzhuji.net/internet/235592.html"><img data-src="/pic/7_235592.jpg" alt="如何确保网页标题在设置截断后仍完整显示?" src="/view/hfdr_dux/img/jz.png" class="thumb"></a><a href="https://www.yunzhuji.net/internet/235592.html">如何确保网页标题在设置截断后仍完整显示?</a></li> <li><a href="https://www.yunzhuji.net/vps/114.html"><img data-src="/upload/article/20250215/17300267b05e9ab7d33B870MB.png" alt="lightlayer:香港/洛杉矶/台湾,优化线路,云服务器低至$2/月,最高1Gbps带宽,可选不限和限制流量" src="/view/hfdr_dux/img/jz.png" class="thumb"></a><a href="https://www.yunzhuji.net/vps/114.html">lightlayer:香港/洛杉矶/台湾,优化线路,云服务器低至$2/月,最高1Gbps带宽,可选不限和限制流量</a></li> <li><a href="https://www.yunzhuji.net/vps/106.html"><img data-src="/upload/article/20250210/15300367a9aafb038e453tNWF.jpg" alt="cloudblast:€3.6/月的荷兰VPS,3G内存/1核(AMD)/20gNVMe/10T流量/10Gbps带宽/2.5Tbps高防" src="/view/hfdr_dux/img/jz.png" class="thumb"></a><a href="https://www.yunzhuji.net/vps/106.html">cloudblast:€3.6/月的荷兰VPS,3G内存/1核(AMD)/20gNVMe/10T流量/10Gbps带宽/2.5Tbps高防</a></li> <li><a href="https://www.yunzhuji.net/vps/45.html"><img data-src="/upload/article/20241229/001449677023f96b036rpUC4K.jpg" alt="locvps:限量促销,美国VPS-80元/年、日本VPS-128元/年,4G内存/1核/20gSSD/600G流量/100M带宽" src="/view/hfdr_dux/img/jz.png" class="thumb"></a><a href="https://www.yunzhuji.net/vps/45.html">locvps:限量促销,美国VPS-80元/年、日本VPS-128元/年,4G内存/1核/20gSSD/600G流量/100M带宽</a></li> <li><a href="https://www.yunzhuji.net/vps/68.html"><img data-src="/upload/article/20250117/183121678a31799fe51dOn9m2.jpg" alt="#推荐# ZgoVPS,$15/年起,AMD高性能平台,高速中国优化网络(美国AS9929/美国CMIN2/日本IIJ)" src="/view/hfdr_dux/img/jz.png" class="thumb"></a><a href="https://www.yunzhuji.net/vps/68.html">#推荐# ZgoVPS,$15/年起,AMD高性能平台,高速中国优化网络(美国AS9929/美国CMIN2/日本IIJ)</a></li> </ul> </div> <div class="post-go"> <div class="title" id="comments"> <h3>评论</h3> </div> <div id="comments" class="no_webshot"> <form action="/index.php?comment-post-ajax-1.html" method="post" id="ctf_form"> <div class="comt"> <div class="comt-title"> <img alt="" data-src="/static/img/avatar.png" class="avatar avatar-50 photo avatar-default" height="50" width="50" src="/view/hfdr_dux/img/avatar-default.png"> </div> <div class="comt-box"> <input type="hidden" name="cid" value="10" /> <input type="hidden" name="id" value="252220" /> <input type="hidden" name="reply_commentid" value="0" /> <textarea placeholder="你的评论可以一针见血" class="input-block-level comt-area" name="content" id="ctf_content" cols="100%" rows="3" tabindex="1" onkeydown="if(event.ctrlKey&&event.keyCode==13){document.getElementById('submit').click();return false};"></textarea> <div class="comt-ctrl"> <div class="comt-tips"><input type="hidden" name="comment_post_ID" value="655" id="comment_post_ID"> <input type="hidden" name="comment_parent" id="comment_parent" value="0"> <div id="ctf_tips"></div> </div> <button type="submit" name="submit" id="ctf_submit" tabindex="5">提交评论</button> </div> </div> <div class="comt-comterinfo" id="comment-author-info"> <ul> <li><input class="ipt" type="text" name="author" id="ctf_author" value="" tabindex="2" placeholder="昵称(必填)"></li> <li> <input class="ipt" type="text" name="vcode" id="ctf_vcode" value="" tabindex="2" placeholder="验证码"> </li> <li> <img id="captchaPic" src="/index.php?comment-vcode" onclick="this.src='/index.php?comment-vcode-r-'+Math.random();" alt="验证码" /> </li> </ul> </div> </div> </form> </div> <div id="postcomments"> <ol class="commentlist" id="comment_cont"> <div class="pagenav"><div class="load-more j-load-more" id="load_more">暂无评论</div></div> </ol> </div> </div> </div> </div> <div class="sidebar"> <div class="widget widget_ui_posts widget-on-phone"> <h3>热门推荐</h3> <ul> <li><a href="https://www.yunzhuji.net/yunfuwuqi/283876.html"> <span class="thumbnail"><img data-src="/pic/10_283876.jpg" alt="如何搭建服务器并配置相关文件?" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">如何搭建服务器并配置相关文件?</span> <span class="muted">2024-12-18</span></a></li> <li><a href="https://www.yunzhuji.net/yunfuwuqi/252043.html"> <span class="thumbnail"><img data-src="/pic/10_252043.jpg" alt="如何利用DedeCMS和Ajax实现搜索下拉提示功能?" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">如何利用DedeCMS和Ajax实现搜索下拉提示功能?</span> <span class="muted">2024-12-18</span></a></li> <li><a href="https://www.yunzhuji.net/yunfuwuqi/285356.html"> <span class="thumbnail"><img data-src="/pic/10_285356.jpg" alt="如何进行负载均衡高并发测试?" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">如何进行负载均衡高并发测试?</span> <span class="muted">2024-12-18</span></a></li> <li><a href="https://www.yunzhuji.net/yunfuwuqi/177070.html"> <span class="thumbnail"><img data-src="/pic/10_177070.jpg" alt="计算机能直接识别的语言是啥" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">计算机能直接识别的语言是啥</span> <span class="muted">2024-12-18</span></a></li> <li><a href="https://www.yunzhuji.net/yunfuwuqi/282645.html"> <span class="thumbnail"><img data-src="/pic/10_282645.jpg" alt="如何在CSS中有效清除浮动?" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">如何在CSS中有效清除浮动?</span> <span class="muted">2024-12-18</span></a></li> </ul> </div> <div class="widget widget_ui_posts widget-on-phone"> <h3>随机推荐</h3> <ul> <li><a href="https://www.yunzhuji.net/vps/29.html"><span class="thumbnail"><img data-src="/upload/article/20241220/0851486764bfa4f14e4wkVjBp.jpg" alt="SugarHosts圣诞狂欢 虚拟主机消费全额返 云服务器返实付金额的20%" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">SugarHosts圣诞狂欢 虚拟主机消费全额返 云服务器返实付金额的20%</span><span class="muted">2024-12-20 08:51</span></a></li> <li><a href="https://www.yunzhuji.net/vps/65.html"><span class="thumbnail"><img data-src="/upload/article/20250117/182532678a301c24406yhfQrW.jpg" alt="ZjiNet便宜香港独服,320元/月,e5-2630L/16g内存/480gSSD/30M带宽,支持自定义" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">ZjiNet便宜香港独服,320元/月,e5-2630L/16g内存/480gSSD/30M带宽,支持自定义</span><span class="muted">2025-01-17 18:25</span></a></li> <li><a href="https://www.yunzhuji.net/vps/76.html"><span class="thumbnail"><img data-src="/upload/article/20250129/230952679a44c04522d7dJ8Cj.jpg" alt="kuroit:10Gbps大带宽新加坡vps,7.5折优惠,$2.78/月,1G内存/1核/15gNVMe/1T流量" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">kuroit:10Gbps大带宽新加坡vps,7.5折优惠,$2.78/月,1G内存/1核/15gNVMe/1T流量</span><span class="muted">2025-01-29 23:09</span></a></li> <li><a href="https://www.yunzhuji.net/vps/63.html"><span class="thumbnail"><img data-src="/upload/article/20250111/21130667826e629bebcHQxDkm.jpg" alt="荫云:韩国住宅VPS(双ISP属性),$9/月,4G内存/2核/50gSSD/5T流量/250M带宽" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">荫云:韩国住宅VPS(双ISP属性),$9/月,4G内存/2核/50gSSD/5T流量/250M带宽</span><span class="muted">2025-01-11 21:13</span></a></li> <li><a href="https://www.yunzhuji.net/vps/32.html"><span class="thumbnail"><img data-src="/upload/article/20241221/17070367668537600a3NDjHJn.jpg" alt="raksmart:10Gbps带宽不限流量香港服务器,$9729,2*e5-2696v4/128g内存/4*1TSSD/5IP" src="/view/hfdr_dux/img/jz.png" class="thumb"></span> <span class="text">raksmart:10Gbps带宽不限流量香港服务器,$9729,2*e5-2696v4/128g内存/4*1TSSD/5IP</span><span class="muted">2024-12-21 17:07</span></a></li> </ul> </div> <div class="widget widget_ui_comments"> <h3>最新评论</h3> <ul> <li><a href="https://www.yunzhuji.net/cdn/4.html" title="莫名CDN的评论"><img data-src="https://www.yunzhuji.net/static/img/avatar.png" class="avatar avatar-50 photo" height="50" width="50" src="/view/hfdr_dux/img/avatar-default.png"> <strong>莫名CDN</strong>2月前 说:<br>本站CDN与莫名CDN同款、亚太CDN、速度还不错,值得推荐。</a></li> <li><a href="https://www.yunzhuji.net/zztj/6.html" title="ucloud的评论"><img data-src="https://www.yunzhuji.net/static/img/avatar.png" class="avatar avatar-50 photo" height="50" width="50" src="/view/hfdr_dux/img/avatar-default.png"> <strong>ucloud</strong>2月前 说:<br>感谢推荐我们公司产品、有什么活动会第一时间公布!</a></li> <li><a href="https://www.yunzhuji.net/zztj/2.html" title="游客的评论"><img data-src="https://www.yunzhuji.net/static/img/avatar.png" class="avatar avatar-50 photo" height="50" width="50" src="/view/hfdr_dux/img/avatar-default.png"> <strong>游客</strong>3月前 说:<br>我在用这类站群服务器、还可以. 用很多年了。</a></li> </ul> </div> <div class="widget-on-phone widget widget_ui_tags"> <h3>标签云</h3> <div class="items"> <a href="https://www.yunzhuji.net/tag/locvps/">locvps</a> <a href="https://www.yunzhuji.net/tag/%E7%BE%8E%E5%9B%BD%E4%BE%BF%E5%AE%9Cvps/">美国便宜vps</a> <a href="https://www.yunzhuji.net/tag/%E6%90%AC%E7%93%A6%E5%B7%A5/">搬瓦工</a> <a href="https://www.yunzhuji.net/tag/%E6%96%B0%E5%8A%A0%E5%9D%A1%E6%9C%8D%E5%8A%A1%E5%99%A8/">新加坡服务器</a> <a href="https://www.yunzhuji.net/tag/%E9%A6%99%E6%B8%AF%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%8E%A8%E8%8D%90/">香港服务器推荐</a> <a href="https://www.yunzhuji.net/tag/%E7%BE%8E%E5%9B%BD%E4%BD%8F%E5%AE%85ip-vps/">美国住宅ip vps</a> <a href="https://www.yunzhuji.net/tag/%E5%BF%AB%E9%80%9F%E7%BE%8E%E5%9B%BDvps/">快速美国vps</a> <a href="https://www.yunzhuji.net/tag/zgocloud/">zgocloud</a> <a href="https://www.yunzhuji.net/tag/%E6%97%A5%E6%9C%AC%E4%B8%8D%E9%99%90%E6%B5%81%E9%87%8Fvps/">日本不限流量vps</a> <a href="https://www.yunzhuji.net/tag/%E6%97%A5%E6%9C%ACvps/">日本vps</a> <a href="https://www.yunzhuji.net/tag/%E7%BE%8E%E5%9B%BD%E6%9C%8D%E5%8A%A1%E5%99%A8/">美国服务器</a> <a href="https://www.yunzhuji.net/tag/velovps%E6%80%8E%E4%B9%88%E6%A0%B7/">velovps怎么样</a> <a href="https://www.yunzhuji.net/tag/racknerd/">racknerd</a> <a href="https://www.yunzhuji.net/tag/%E9%A6%99%E6%B8%AF%E6%9C%8D%E5%8A%A1%E5%99%A8/">香港服务器</a> <a href="https://www.yunzhuji.net/tag/%E8%8D%B7%E5%85%B0vps-%E9%AB%98%E9%98%B2/">荷兰vps 高防</a> <a href="https://www.yunzhuji.net/tag/pqhosting/">pqhosting</a> <a href="https://www.yunzhuji.net/tag/racknerd-ipv6/">racknerd ipv6</a> <a href="https://www.yunzhuji.net/tag/%E9%A6%99%E6%B8%AF%E4%B8%8D%E9%99%90%E6%B5%81%E9%87%8Fvps%E6%9C%8D%E5%8A%A1%E5%99%A8/">香港不限流量vps服务器</a> <a href="https://www.yunzhuji.net/tag/cn2%E7%BA%BF%E8%B7%AF/">cn2线路</a> <a href="https://www.yunzhuji.net/tag/%E8%85%BE%E8%AE%AF%E4%BA%91%E4%BC%98%E6%83%A0%E7%A0%81/">腾讯云优惠码</a> <a href="https://www.yunzhuji.net/tag/%E7%BE%8E%E5%9B%BD%E5%8F%8Cisp-ip/">美国双isp ip</a> </div> </div> <!-- 内页右侧 --> <div class="widget-on-phone widget widget_media_image"><a href="#"><img width="360" height="206" src="https://img.4414.cn/forum/202412/15/225418gjh3p5958ux0g8pz.jpg" class="image wp-image-75276 attachment-full size-full entered lazyloaded" alt="" style="max-width: 100%; height: auto;" decoding="async" fetchpriority="high" data-lazy-src="https://img.4414.cn/forum/202412/15/225418gjh3p5958ux0g8pz.jpg" data-ll-status="loaded"><noscript><img width="360" height="206" src="https://img.4414.cn/forum/202412/15/225418gjh3p5958ux0g8pz.jpg" class="image wp-image-75276 attachment-full size-full" alt="" style="max-width: 100%; height: auto;" decoding="async" fetchpriority="high" /></noscript></a></div> <!-- 内页右侧 --> </div> </section> <footer class="footer"> <div class="container"> <div class="flinks"> <strong>友情链接</strong> <ul class='xoxo blogroll'> <li><a href="https://tool.112.run/bishun.html" rel="noopener" title="汉字笔顺" target="_blank">汉字笔顺</a></li> <li><a href="https://tool.112.run/hanzi.html" rel="noopener" title="汉字查询" target="_blank">汉字查询</a></li> <li><a href="https://tool.112.run/" rel="noopener" title="在线工具" target="_blank">在线工具</a></li> <li><a href="https://www.112.run/" rel="noopener" title="112工具箱" target="_blank">112工具箱</a></li> </ul> </div> <p><a target="_blank" rel="nofollow"><strong><span style="color: #ff0000;">本站不销售产品、不代购、不提供技术支持,仅分享信息,请遵纪守法、文明上网。</span></strong></a> <br> Copyright © 2024 <a href="/">云主机测评网</a> - All Rights Reserved 闽ICP备1000000号</p> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?5b8a98e1acc41ae4819af6359fcefd67"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script></div> </footer> <div class="karbar karbar-rb"> <ul> <li class="karbar-totop"><a href="javascript:(TBUI.scrollTo());"><i class="tbfa"></i></a></li> </ul> </div> <script> window.TBUI = {"www":"https:\/\/yunzhuji.net\/hfdr_dux","uri":"https:\/\/yunzhuji.net\/view\/hfdr_dux","roll":"1 2 3"}</script> <script type='text/javascript' src='/view/hfdr_dux/js/loader.js' id='loader-js'></script> <script> </script> </body> </html> <script type="text/javascript" src="/view/hfdr_dux/js/style.js"></script> <script src="/view/hfdr_dux/js/img-view.js"></script> <div class="rewards-popover-mask" data-event="rewards-close" style="display: none;"></div> <div class="rewards-popover" style="display: none;"> <h3>觉得文章有用就打赏一下文章作者</h3> <h5>非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!</h5> <div class="rewards-popover-item"> <h4>支付宝扫一扫打赏</h4> <img src="/view/hfdr_dux/img/zfb.png"> </div> <div class="rewards-popover-item"><h4>微信扫一扫打赏</h4> <img src="/view/hfdr_dux/img/wx.png"> </div> <span class="rewards-popover-close" data-event="rewards-close"><i class="tbfa"></i></span> </div> <script> $(".article-content img").on("click",function (){ window.ViewImage && ViewImage.init('.article-content img'); }); </script> <script type="text/javascript"> $("#likes_do").click(function () { $.getJSON("", function(data){ if(data.err){ alert(data.msg); }else{ if( data.dolike == 1 ){ $("#likes_do").attr(""); }else{ $("#likes_do").attr(""); } $("#likes_count").html(data.likes_count); alert(data.msg); } }); }); </script> <script type="text/javascript"> //回复某评论 function reply_comment(commentid){ $("input[name='reply_commentid']").val(commentid); var comment = $("#comment_"+commentid+">.msgarticle").html(); $("#reply_comment_content").html(comment); $("#reply_comment_div").show(); } //取消回复某评论 function cancel_reply_comment() { $("input[name='reply_commentid']").val(0); $("#reply_comment_div").hide(); } //加载更多评论 (function(){ var obj = $("#load_more"); var next_url = obj.attr("next_url"); var isnext = obj.attr("isnext"); var no_more = function() { obj.html("没有更多了"); if(typeof load_more != "undefined") obj.off("click", load_more); if(typeof auto_load_more != "undefined") $(window).off("scroll", auto_load_more); } if(isnext < 1) { no_more(); return; } var leJosnLock = false; var load_more = function() { if(!next_url || leJosnLock) return; obj.html("玩命加载中..."); leJosnLock = true; $.get(next_url, function(data) { try{ var json = eval("("+data+")"); next_url = json.next_url; $.each(json.list_arr, function(i,item) { var s = '<li class="comment byuser comment-author-admin bypostauthor even thread-even depth-1">'; s += '<span class="comt-f">'+item.date+'</span><div class="comt-avatar"><img alt="'+item.author+'" src="'+item.avatar+'" class="avatar avatar-50 photo" src="view/hfdr-dux/img/avatar-default.png"></div>'; s += '<div class="comt-main"><p>'+item.content+'</p><div class="comt-meta"><span class="comt-author">'+item.author+'</span>('+item.ip+')</div></div>'; s += '</li>'; $("#comment_cont>li:last").after(s); }); obj.html("更多评论"); leJosnLock = false; if(json.isnext < 1) no_more(); }catch(e){ alert(data); } }); } obj.click(load_more); })(); </script>