商城首页欢迎来到中国正版软件门户

您的位置:首页 >PHP读取文本文件并设置网页标题方法

PHP读取文本文件并设置网页标题方法

  发布于2026-02-04 阅读(0)

扫一扫,手机访问

如何使用 PHP 动态读取文本文件内容并设置为网页标题

通过 PHP 读取本地文本文件内容,并将其安全注入 `` 标签,可实现网页标题的动态更新,适用于需频繁变更标题但不依赖数据库的轻量场景。</p><p>在 Web 开发中,有时需要让页面标题(即 <title>)随外部状态变化而自动更新,例如显示当前公告、系统状态或实时活动名称。若该信息已由其他脚本写入一个纯文本文件(如 file.txt),我们无需引入数据库或 API,仅用原生 PHP 即可高效完成动态标题渲染。</p><p>以下是一个简洁可靠的实现方案:</p><pre class="brush:php;toolbar:false"><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php $filename = 'file.txt'; $content = file_exists($filename) && is_readable($filename) ? trim(file_get_contents($filename)) : 'Default Page Title'; // 安全转义,防止 XSS 和 HTML 解析异常 $safeTitle = htmlspecialchars($content, ENT_QUOTES, 'UTF-8'); ?> <title><?php echo $safeTitle; ?></title> </head> <body> <h1>Welcome to My Dynamic Page</h1> </body> </html></pre><p>✅ <strong>关键说明:</strong> </p><ul><li>使用 file_get_contents() 替代 fopen()/fgets() 更简洁,且自动处理换行与编码; </li><li>trim() 去除首尾空白与换行符,避免标题出现意外空格; </li><li>file_exists() 与 is_readable() 双重校验,确保服务健壮性——当文件缺失或无权限时,回退至默认标题; </li><li>htmlspecialchars() 必不可少:它将 <, >, ", ' 等特殊字符转义,杜绝 XSS 风险,尤其当文本内容可能含用户输入时; </li><li>文件需与 PHP 页面同域且 Web <a href="https://www.fastadmin.net/go/aliyun" target="_blank">服务器</a>有读取权限(如 Apache 的 www-data 或 Nginx 的 nginx 用户可读)。</li></ul><p>⚠️ <strong>注意事项:</strong> </p><ul><li>此方案适用于低并发、非实时性极高的场景(如每分钟更新一次的公告)。若需毫秒级响应,请考虑 AJAX + 后端接口或服务端事件(SSE); </li><li>文本文件应保存为 UTF-8 无 BOM 格式,避免 htmlspecialchars() 因编码识别失败导致乱码; </li><li>生产环境建议添加错误日志记录(如 error_log("Failed to read title file: $filename");),便于排查异常。</li></ul><p>综上,这一方法以最小侵入性实现了标题动态化,兼顾安全性、可维护性与部署简易性,是静态站点增强交互性的实用技巧。</p> </div> <div class="laiyuan"> 本文转载于:互联网 如有侵犯,请联系zhengruancom@outlook.com删除。<br/>免责声明:正软商城发布此文仅为传递信息,不代表正软商城认同其观点或证实其描述。 </div> <div class="zrSypBox"> <p>上一篇:<a href="https://www.zhengruan.com/news/573171" title="WPS取消自动保存方法详解" class="aRed">WPS取消自动保存方法详解</a></p> <p class="right">下一篇:<a href="https://www.zhengruan.com/news/573173" title="Java字符串操作与常用类库解析" class="aRed">Java字符串操作与常用类库解析</a></p> <div class="clear"></div> </div> <div class="zrDtxwBox"> <div class="zrByddTitle"> <span><h2>产品推荐</h2></span> </div> <ul class="zrTxdmList3"> <li class="one"> <div class="zrTxdmCont5"> <div class="zrTxdmImg4 dianji"> <a href="https://www.zhengruan.com/product/69" class="img"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/cd14258f0172a172f8a80798c38c1577.jpg" alt="DAEMON Tools Lite 10"></a> <span class="xianshi"> <p>售后无忧</p> <em><a href="https://www.zhengruan.com/product/69" title="立即购买>">立即购买></a></em> </span> </div> <div class="zrTxdmIn4"> <dl> <dt><a href="https://www.zhengruan.com/product/69" title="DAEMON Tools Lite 10【序列号终身授权 + 中文版 + Win】" class="aBlack">DAEMON Tools Lite 10【序列号终身授权 + 中文版 + Win】</a></dt> <dd> <span>¥150.00</span> <p>office旗舰店</p> </dd> </dl> </div> </div> </li> <li > <div class="zrTxdmCont5"> <div class="zrTxdmImg4 dianji"> <a href="https://www.zhengruan.com/product/67" class="img"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/fbf473d4d30833324962e441c0f18265.jpg" alt="DAEMON Tools Ultra 5"></a> <span class="xianshi"> <p>售后无忧</p> <em><a href="https://www.zhengruan.com/product/67" title="立即购买>">立即购买></a></em> </span> </div> <div class="zrTxdmIn4"> <dl> <dt><a href="https://www.zhengruan.com/product/67" title="DAEMON Tools Ultra 5【序列号终身授权 + 中文版 + Win】" class="aBlack">DAEMON Tools Ultra 5【序列号终身授权 + 中文版 + Win】</a></dt> <dd> <span>¥198.00</span> <p>office旗舰店</p> </dd> </dl> </div> </div> </li> <li > <div class="zrTxdmCont5"> <div class="zrTxdmImg4 dianji"> <a href="https://www.zhengruan.com/product/68" class="img"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/1ae250399abf4ff584d86d52c79b5bb6.jpg" alt="DAEMON Tools Pro 8"></a> <span class="xianshi"> <p>售后无忧</p> <em><a href="https://www.zhengruan.com/product/68" title="立即购买>">立即购买></a></em> </span> </div> <div class="zrTxdmIn4"> <dl> <dt><a href="https://www.zhengruan.com/product/68" title="DAEMON Tools Pro 8【序列号终身授权 + 中文版 + Win】" class="aBlack">DAEMON Tools Pro 8【序列号终身授权 + 中文版 + Win】</a></dt> <dd> <span>¥189.00</span> <p>office旗舰店</p> </dd> </dl> </div> </div> </li> <li > <div class="zrTxdmCont5"> <div class="zrTxdmImg4 dianji"> <a href="https://www.zhengruan.com/product/29" class="img"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/77d3c04866e1b842d9b6ff0e9368bdf8.jpg" alt="CorelDRAW X8 简体中文"></a> <span class="xianshi"> <p>售后无忧</p> <em><a href="https://www.zhengruan.com/product/29" title="立即购买>">立即购买></a></em> </span> </div> <div class="zrTxdmIn4"> <dl> <dt><a href="https://www.zhengruan.com/product/29" title="CorelDRAW X8 简体中文【标准版 + Win】" class="aBlack">CorelDRAW X8 简体中文【标准版 + Win】</a></dt> <dd> <span>¥1788.00</span> <p>office旗舰店</p> </dd> </dl> </div> </div> </li> <div class="clear"></div> </ul> </div> </div> <ul class="zrZbrjList" style="padding-top:10px;"> <li> <a href="https://www.zhengruan.com/news/606369" class="img1" title="抖音怎么关闭在线状态?抖音关闭在线状态方法教程"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://zhengruan.com/uploads/20260326/177450001975622.jpg" alt="抖音怎么关闭在线状态?抖音关闭在线状态方法教程"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/606369" title="抖音怎么关闭在线状态?抖音关闭在线状态方法教程" class="aBlack">抖音怎么关闭在线状态?抖音关闭在线状态方法教程</a></dt> <dd class="cont1">抖音怎么关闭在线状态?我们在刷抖音短视频的时候,一些好友之间为了分享有趣的视频通常会互相关注,但互相关注了之后你的在线状态就会在好友那边显示出来,想必很多朋友都会被这个问题所困扰吧,那么怎么关闭抖音在线状态呢,接下来让小编来给大家详细介绍一下吧。</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>23小时前 12:40</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> <li> <a href="https://www.zhengruan.com/news/606313" class="img1" title="纷玩岛如何预约抢票?纷玩岛预约抢票方法教程"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://zhengruan.com/uploads/20260326/177449777425179.jpg" alt="纷玩岛如何预约抢票?纷玩岛预约抢票方法教程"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/606313" title="纷玩岛如何预约抢票?纷玩岛预约抢票方法教程" class="aBlack">纷玩岛如何预约抢票?纷玩岛预约抢票方法教程</a></dt> <dd class="cont1">纷玩岛如何预约抢票?纷玩岛是一款购票软件,用户可通过该app查询歌手演出情况并下单购票。为了避免错过演唱会门票的开票,用户可提前预约,软件会在开票前发送推送通知。但很多小伙伴不知道怎么预约抢票呢?今天小编将给大家带来的是纷玩岛预约抢票的方法,快来看看吧!</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>昨天 03-26 12:02</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> <li> <a href="https://www.zhengruan.com/news/606297" class="img1" title="qq怎么改防沉迷实名认证?qq防沉迷实名认证改绑方法教程"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://zhengruan.com/uploads/20260326/177449692760352.jpg" alt="qq怎么改防沉迷实名认证?qq防沉迷实名认证改绑方法教程"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/606297" title="qq怎么改防沉迷实名认证?qq防沉迷实名认证改绑方法教程" class="aBlack">qq怎么改防沉迷实名认证?qq防沉迷实名认证改绑方法教程</a></dt> <dd class="cont1">qq怎么改绑防沉迷实名认证?随着网络游戏的普及,越来越多的人会使用qq账号来登录游戏,游戏中的防沉迷实名认证系统自然就会与所登录的qq账号绑定在一起,那么想要更改防沉迷实名认证怎么办呢?下面小编就给大家带来了qq防沉迷实名认证改绑方法步骤,希望能对大家有所帮助。</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>昨天 03-26 11:48</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> <li> <a href="https://www.zhengruan.com/news/606283" class="img1" title="猎聘怎么关闭求职状态?猎聘求职状态关闭教程"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://zhengruan.com/uploads/20260326/177449610576177.jpg" alt="猎聘怎么关闭求职状态?猎聘求职状态关闭教程"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/606283" title="猎聘怎么关闭求职状态?猎聘求职状态关闭教程" class="aBlack">猎聘怎么关闭求职状态?猎聘求职状态关闭教程</a></dt> <dd class="cont1">猎聘求职状态要怎么关闭?你是否曾经在寻找工作时,却又不希望被所有人知道?或者,你是否在忙碌的生活中,不再需要公开自己的求职状态?猎聘作为一个知名的职业发展平台,提供了关闭求职状态的功能。今天,就让我们一起来学习如何使用这个实用功能吧!</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>昨天 03-26 11:35</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> <li> <a href="https://www.zhengruan.com/news/606211" class="img1" title="得物app怎么解绑银行卡?得物app银行卡解绑教程"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://zhengruan.com/uploads/20260326/177449155755650.jpg" alt="得物app怎么解绑银行卡?得物app银行卡解绑教程"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/606211" title="得物app怎么解绑银行卡?得物app银行卡解绑教程" class="aBlack">得物app怎么解绑银行卡?得物app银行卡解绑教程</a></dt> <dd class="cont1">哈喽,各位小伙伴你们好呀,你是否曾经想过,如何在得物APP上轻松解绑你的银行卡呢?现在,小编将为你提供一份详细的教程,让你在轻松的掌握这个技能!首先,我们要明白解绑银行卡的重要性。想象一下,如果你已经决定不再使用得物app,但是你的银行卡仍然与该应用绑定,那会带来多大的安全隐患啊!</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>昨天 03-26 10:19</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> </ul> </div> <!--左边 end--> <!--右边--> <div class="zrZuoRight"> <!-- <div class="zrBanner"><a href="#"><img src="zrimages/example/img11.png"/></a></div>--> <div class="zrByddBox"> <div class="zrByddTitle"><span><h2>最新发布</h2></span></div> <ul class="zrByddList"> <li> <a href="https://www.zhengruan.com/news/1561" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/upload/news/20191220/1576825692n90594/2019-12-20-15-08-12-5dfc735c5581a-1.jpg" alt="微软公布全新开源编程语言Bosque:正则化 告别for循环"> <span>1</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/1561" title="微软公布全新开源编程语言Bosque:正则化 告别for循环" class="aBlack">微软公布全新开源编程语言Bosque:正则化 告别for循环</a></dt> <dd><b></b>2289天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/1562" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/upload/news/20191220/1576825776n3925/2019-12-20-15-09-36-5dfc73b032cee-1.jpg" alt="微软推出最新程序语言Bosque 以Functors取代Loop循环"> <span>2</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/1562" title="微软推出最新程序语言Bosque 以Functors取代Loop循环" class="aBlack">微软推出最新程序语言Bosque 以Functors取代Loop循环</a></dt> <dd><b></b>2289天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/467167" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20250908/175730816420885.jpg" alt="C语言中\n是什么意思?换行转义字符详解"> <span>3</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/467167" title="C语言中\n是什么意思?换行转义字符详解" class="aBlack">C语言中\n是什么意思?换行转义字符详解</a></dt> <dd><b></b>200天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/63159" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="" alt="探析Spring Boot框架的优点和特色"> <span>4</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/63159" title="探析Spring Boot框架的优点和特色" class="aBlack">探析Spring Boot框架的优点和特色</a></dt> <dd><b></b>516天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/85739" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="" alt="深入比较PyCharm社区版和专业版的功能"> <span>5</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/85739" title="深入比较PyCharm社区版和专业版的功能" class="aBlack">深入比较PyCharm社区版和专业版的功能</a></dt> <dd><b></b>454天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/89680" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="" alt="专家观点:谷歌是否会继续支持Golang的探讨"> <span>6</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/89680" title="专家观点:谷歌是否会继续支持Golang的探讨" class="aBlack">专家观点:谷歌是否会继续支持Golang的探讨</a></dt> <dd><b></b>430天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/16470" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20230427/168257472829656.jpg" alt="Python实战教程:批量转换多种音乐格式"> <span>7</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/16470" title="Python实战教程:批量转换多种音乐格式" class="aBlack">Python实战教程:批量转换多种音乐格式</a></dt> <dd><b></b>1062天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/41129" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="" alt="如何在在线答题中实现试卷的自动批改和自动评分"> <span>8</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/41129" title="如何在在线答题中实现试卷的自动批改和自动评分" class="aBlack">如何在在线答题中实现试卷的自动批改和自动评分</a></dt> <dd><b></b>890天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/87821" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20240301/170927298835686.jpg" alt="解决Python安装失败的问题"> <span>9</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/87821" title="解决Python安装失败的问题" class="aBlack">解决Python安装失败的问题</a></dt> <dd><b></b>440天前</dd> </dl> <div class="clear"></div> </li> </ul> </div> <div class="zrRmgzBox" style="margin-top:20px;"> <div class="zrByddTitle"> <span><h2>相关推荐</h2></span> </div> <ul class="zrXwdtList"> <li><a href="https://www.zhengruan.com/news/606369" title="抖音怎么关闭在线状态?抖音关闭在线状态方法教程" class="aBlack">抖音怎么关闭在线状态?抖音关闭在线状态方法教程</a></li> <li><a href="https://www.zhengruan.com/news/606313" title="纷玩岛如何预约抢票?纷玩岛预约抢票方法教程" class="aBlack">纷玩岛如何预约抢票?纷玩岛预约抢票方法教程</a></li> <li><a href="https://www.zhengruan.com/news/606297" title="qq怎么改防沉迷实名认证?qq防沉迷实名认证改绑方法教程" class="aBlack">qq怎么改防沉迷实名认证?qq防沉迷实名认证改绑方法教程</a></li> <li><a href="https://www.zhengruan.com/news/606283" title="猎聘怎么关闭求职状态?猎聘求职状态关闭教程" class="aBlack">猎聘怎么关闭求职状态?猎聘求职状态关闭教程</a></li> <li><a href="https://www.zhengruan.com/news/606211" title="得物app怎么解绑银行卡?得物app银行卡解绑教程" class="aBlack">得物app怎么解绑银行卡?得物app银行卡解绑教程</a></li> <li><a href="https://www.zhengruan.com/news/605450" title="UC浏览器隐藏功能在哪里?uc浏览器隐藏用法教程" class="aBlack">UC浏览器隐藏功能在哪里?uc浏览器隐藏用法教程</a></li> <li><a href="https://www.zhengruan.com/news/605436" title="王者营地怎么qq和微信一起玩?王者荣耀王者营地跨区组队操作教程" class="aBlack">王者营地怎么qq和微信一起玩?王者荣耀王者营地跨区组队操作教程</a></li> <li><a href="https://www.zhengruan.com/news/605381" title="支付宝怎么加好友?支付宝加好友的流程教程" class="aBlack">支付宝怎么加好友?支付宝加好友的流程教程</a></li> <li><a href="https://www.zhengruan.com/news/605366" title="支付宝怎么转账到别人银行卡?支付宝转账到别人银行卡方法教程" class="aBlack">支付宝怎么转账到别人银行卡?支付宝转账到别人银行卡方法教程</a></li> </ul> </div> <div class="zrRmgzBox" style="margin-top:30px;"> <div class="zrByddTitle"> <span><h2>热门关注</h2></span> </div> <ul class="zrRmgzList"> <li> <span><a href="https://www.zhengruan.com/product/19" title="Xshell 6 简体中文"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/3c06ff5d8d3a8b234a536d602bcc0477.jpg" alt="Xshell 6 简体中文"></a></span> <dl> <dt><a href="https://www.zhengruan.com/product/19" title="Xshell 6 简体中文" class="aBlack">Xshell 6 简体中文</a></dt> <dd class="unstar unstar5"></dd> <dd class="cont1">¥899.00-¥1149.00</dd> </dl> <div class="clear"></div> </li> <li> <span><a href="https://www.zhengruan.com/product/48" title="DaVinci Resolve Studio 16 简体中文"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/60b5be77e7fc0ffb073d36675dc61585.jpg" alt="DaVinci Resolve Studio 16 简体中文"></a></span> <dl> <dt><a href="https://www.zhengruan.com/product/48" title="DaVinci Resolve Studio 16 简体中文" class="aBlack">DaVinci Resolve Studio 16 简体中文</a></dt> <dd class="unstar unstar5"></dd> <dd class="cont1">¥2550.00-¥2550.00</dd> </dl> <div class="clear"></div> </li> <li> <span><a href="https://www.zhengruan.com/product/47" title="Camtasia 2019 简体中文"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/537cf14c8ab78e3bca0cfe8e91c8b683.jpg" alt="Camtasia 2019 简体中文"></a></span> <dl> <dt><a href="https://www.zhengruan.com/product/47" title="Camtasia 2019 简体中文" class="aBlack">Camtasia 2019 简体中文</a></dt> <dd class="unstar unstar5"></dd> <dd class="cont1">¥689.00-¥689.00</dd> </dl> <div class="clear"></div> </li> <li> <span><a href="https://www.zhengruan.com/product/35" title="Luminar 3 简体中文"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/d253cca5f121bda501d04debdf3a4fa2.jpg" alt="Luminar 3 简体中文"></a></span> <dl> <dt><a href="https://www.zhengruan.com/product/35" title="Luminar 3 简体中文" class="aBlack">Luminar 3 简体中文</a></dt> <dd class="unstar unstar5"></dd> <dd class="cont1">¥288.00-¥288.00</dd> </dl> <div class="clear"></div> </li> <li> <span><a href="https://www.zhengruan.com/product/49" title="Apowersoft 录屏王 简体中文"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20200428/c61fdff8f15649063e6b2617c8aa96fb.jpg" alt="Apowersoft 录屏王 简体中文"></a></span> <dl> <dt><a href="https://www.zhengruan.com/product/49" title="Apowersoft 录屏王 简体中文" class="aBlack">Apowersoft 录屏王 简体中文</a></dt> <dd class="unstar unstar5"></dd> <dd class="cont1">¥129.00-¥339.00</dd> </dl> <div class="clear"></div> </li> </ul> </div> </div> <!--右边 end--> <div class="clear"></div> </div> <!--主体 end--> <!--底部--> <!--底部--> <div class="zrFoot"> <div class="zrFootIn"> <div class="zrFootMsg">网站备案号: <a href="javascript:void(0)" target="" style="text-decoration: none;"> <font color="#9b9db0">湘ICP备19013367号-1 联系邮箱:zhengruancom@outlook.com<br> Copyright ©2018-2020</font> </a> </div> </div> </div> <!--底部 end--> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?2f243b178fc8c70f194fc14781f06522"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <!--底部 end--> <script> function countView(){ $.ajax({ type: "post", url: "/countView?&time="+new Date().getTime(), data:{'type':'news','id':"573172"}, async:false, dataType: "json", success: function(result){ console.log(result) }, error:function(){ } }); } function code_highlight() { SyntaxHighlighter.all() } $(function(){ code_highlight(); countView(); $("#qrcode").qrcode({width:150,height:150,text:"https://m.zhengruan.com/news/573172"}) }) </script> </body> </html>