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

您的位置: 首页 > 文章列表 > 编程开发 > 如何做一个文本搜索?

如何做一个文本搜索?

  发布于2026-07-22 阅读(0)

扫一扫,手机访问

先说说这段代码的背景。它其实是一个很经典的ASP小工具——站内文本搜索器,当年在静态网站时代非常实用。整段代码的核心思路并不复杂:通过递归遍历服务器上的文件夹,逐个读取HTML文件,在里面查找用户输入的关键词,然后把匹配到的文件链接和标题列出来。

咱们拆开来看具体是怎么实现的。代码开头先定义了几个关键变量,比如head用来存页面标题,SearchString从请求参数中获取用户输入的内容。然后是一个很实用的辅助函数UnMapPath,它的作用是把服务器上的物理路径转换为虚拟路径。为什么要这么做?因为直接暴露物理路径既不安全,也不方便用户点击访问。

接下来是核心的SearchFile函数。这个函数接受三个参数:文件路径、搜索关键词和标题引用。它的工作流程是:用FileSystemObject打开文件,把全部内容读到content变量里,然后用InStr函数检查是否包含搜索词。如果找到了,还会进一步提取</code>标签之间的内容,方便在搜索结果中显示更有意义的标题,而不是直接显示文件名。</p> <p>有意思的是,它还设计了一个<code>FileLink</code>函数,专门用来生成带链接的HTML列表项。如果搜索到的文件没有提取到标题,那就会用文件名作为备选。这个细节很贴心,毕竟不是所有HTML文件都规范地写了<code><title></code>标签。</p> <p>真正的遍历逻辑在<code>SearchFolder</code>子程序里。它先检查当前文件夹下的所有文件,只处理扩展名为<code>.htm</code>的文件,然后调用<code>SearchFile</code>进行匹配。如果匹配成功,就把结果输出到页面,同时用一个全局计数器<code>count</code>记录匹配数量。处理完文件后,再递归处理子文件夹,确保不会漏掉任何深层目录。</p> <p>页面本身的设计也很简洁:一个搜索表单,用户输入关键词后提交,结果会以列表形式展示,每个匹配文件都带着可点击的链接和标题。整个工具没有依赖数据库,也没有复杂的配置,对于一个中小型静态网站来说,完全够用了。</p> <p>当然,这段代码也存在一些明显的时代痕迹。比如它只处理<code>.htm</code>扩展名,没有考虑<code>.html</code>或<code>.shtml</code>;字符集写的是<code>gb_2312-80</code>,现在基本都改用<code>UTF-8</code>了;而且没有做任何安全防护,比如防止注入攻击或者限制搜索范围。不过作为早期ASP时代的怀旧作品,它确实代表了那个年代解决“站内搜索”问题的一种典型思路。</p> </div> <div class="laiyuan"> 本文转载于:https://www.jb51.net/article/4791.htm 如有侵犯,请联系zhengruancom@outlook.com删除。<br/>免责声明:正软商城发布此文仅为传递信息,不代表正软商城认同其观点或证实其描述。 </div> <div class="zrSypBox"> <p>上一篇:<a href="https://www.zhengruan.com/news/715071" title="如何实现全文检索?" class="aRed">如何实现全文检索?</a></p> <p class="right">下一篇:<a href="https://www.zhengruan.com/news/715073" title="如何做一个只搜索本网站的引擎?" class="aRed">如何做一个只搜索本网站的引擎?</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/news/soft69" 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/news/soft69" title="立即购买>">立即购买></a></em> </span> </div> <div class="zrTxdmIn4"> <dl> <dt><a href="https://www.zhengruan.com/news/soft69" 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/news/soft67" 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/news/soft67" title="立即购买>">立即购买></a></em> </span> </div> <div class="zrTxdmIn4"> <dl> <dt><a href="https://www.zhengruan.com/news/soft67" 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/news/soft68" 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/news/soft68" title="立即购买>">立即购买></a></em> </span> </div> <div class="zrTxdmIn4"> <dl> <dt><a href="https://www.zhengruan.com/news/soft68" 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/news/soft29" 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/news/soft29" title="立即购买>">立即购买></a></em> </span> </div> <div class="zrTxdmIn4"> <dl> <dt><a href="https://www.zhengruan.com/news/soft29" 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/736200" class="img1" title="using namespace 使用中遇到的问题怎么解决"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260807/178605885655125.webp" alt="using namespace 使用中遇到的问题怎么解决"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/736200" title="using namespace 使用中遇到的问题怎么解决" class="aBlack">using namespace 使用中遇到的问题怎么解决</a></dt> <dd class="cont1">命名空间的基本概念与常见引入问题在C++等编程语言中,命名空间(namespace)是一种将代码标识符(如变量、函数、类名)封装在特定名称下的机制,其主要目的是避免命名冲突,尤其是在大型项目或使用多个第三方库时。使用“using namespace”指令可以将指定命名空间中的所有名称引入当前作用域,</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>9天前</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> <li> <a href="https://www.zhengruan.com/news/736199" class="img1" title="c语言函数递归 实操经验总结:这些技巧很实用"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260807/178605879214771.webp" alt="c语言函数递归 实操经验总结:这些技巧很实用"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/736199" title="c语言函数递归 实操经验总结:这些技巧很实用" class="aBlack">c语言函数递归 实操经验总结:这些技巧很实用</a></dt> <dd class="cont1">理解递归的基本原理在C语言中,递归是一种函数调用自身的编程技术。要掌握它,首先需要理解其核心思想:将一个复杂的大问题,分解为一个或几个与原问题相似但规模更小的子问题,直到子问题足够简单,可以直接求解。这个过程通常包含两个关键部分:递归出口和递归体。递归出口定义了问题何时不再继续分解,即最简单、可直接</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>9天前</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> <li> <a href="https://www.zhengruan.com/news/736198" class="img1" title="c语言函数递归 怎么选?常见方案对比分析"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260807/178605874187563.webp" alt="c语言函数递归 怎么选?常见方案对比分析"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/736198" title="c语言函数递归 怎么选?常见方案对比分析" class="aBlack">c语言函数递归 怎么选?常见方案对比分析</a></dt> <dd class="cont1">递归函数的基本概念与适用场景在C语言编程中,递归是一种函数调用自身的编程技巧。它并非适用于所有问题,但在处理某些具有自相似结构的问题时,能提供极其清晰和优雅的解决方案。递归的核心思想是将一个大规模问题分解为一个或多个同类型但规模更小的子问题,直到子问题简单到可以直接求解。典型的适用场景包括树形结构的</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>9天前</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> <li> <a href="https://www.zhengruan.com/news/736197" class="img1" title="Objective-C 内存管理入门:从 alloc 到 dealloc 的生命周期详解"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260807/178605862499192.webp" alt="Objective-C 内存管理入门:从 alloc 到 dealloc 的生命周期详解"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/736197" title="Objective-C 内存管理入门:从 alloc 到 dealloc 的生命周期详解" class="aBlack">Objective-C 内存管理入门:从 alloc 到 dealloc 的生命周期详解</a></dt> <dd class="cont1">理解内存管理的基石在Objective-C的编程世界中,内存管理是开发者必须掌握的核心技能之一。它直接关系到应用的性能、稳定性与资源利用效率。与一些采用自动垃圾回收机制的语言不同,Objective-C在很长一段时间里,依赖一套基于引用计数的、需要开发者部分介入的管理规则。这套规则的核心思想是明确的</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>9天前</span> <span class="cont4"><b></b>0</span> </dd> </dl> </li> <li> <a href="https://www.zhengruan.com/news/736196" class="img1" title="如何正确使用 dealloc 以避免 iOS 应用中的内存泄漏"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260807/178605861766536.webp" alt="如何正确使用 dealloc 以避免 iOS 应用中的内存泄漏"> <span>正版软件</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/736196" title="如何正确使用 dealloc 以避免 iOS 应用中的内存泄漏" class="aBlack">如何正确使用 dealloc 以避免 iOS 应用中的内存泄漏</a></dt> <dd class="cont1">理解 dealloc 的角色与时机在 iOS 应用开发中,内存管理是保障应用性能与稳定性的基石。dealloc 方法是 Objective-C 中对象生命周期结束时的关键回调,它标志着对象即将被系统回收内存。正确理解其触发时机至关重要:当一个对象的引用计数降为零时,运行时系统会自动调用该对象的 de</dd> <dd class="cont2"> <!--<span class="cont1"><img src="zrimages/example/img10.png"/>山外的鸭子哥</span>--> <span class="cont2"><b></b>9天前</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>2431天前</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>2431天前</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>342天前</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>657天前</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>595天前</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>571天前</dd> </dl> <div class="clear"></div> </li> <li> <a href="https://www.zhengruan.com/news/16338" class="img"> <img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20230427/168257005787096.jpg" alt="提升 Python 编程效率:推荐使用 VSCode 的 Python 扩展"> <span>7</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/16338" title="提升 Python 编程效率:推荐使用 VSCode 的 Python 扩展" class="aBlack">提升 Python 编程效率:推荐使用 VSCode 的 Python 扩展</a></dt> <dd><b></b>1204天前</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>8</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/16470" title="Python实战教程:批量转换多种音乐格式" class="aBlack">Python实战教程:批量转换多种音乐格式</a></dt> <dd><b></b>1203天前</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>9</span> </a> <dl> <dt><a href="https://www.zhengruan.com/news/41129" title="如何在在线答题中实现试卷的自动批改和自动评分" class="aBlack">如何在在线答题中实现试卷的自动批改和自动评分</a></dt> <dd><b></b>1031天前</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/736200" title="using namespace 使用中遇到的问题怎么解决" class="aBlack">using namespace 使用中遇到的问题怎么解决</a></li> <li><a href="https://www.zhengruan.com/news/736199" title="c语言函数递归 实操经验总结:这些技巧很实用" class="aBlack">c语言函数递归 实操经验总结:这些技巧很实用</a></li> <li><a href="https://www.zhengruan.com/news/736198" title="c语言函数递归 怎么选?常见方案对比分析" class="aBlack">c语言函数递归 怎么选?常见方案对比分析</a></li> <li><a href="https://www.zhengruan.com/news/736197" title="Objective-C 内存管理入门:从 alloc 到 dealloc 的生命周期详解" class="aBlack">Objective-C 内存管理入门:从 alloc 到 dealloc 的生命周期详解</a></li> <li><a href="https://www.zhengruan.com/news/736196" title="如何正确使用 dealloc 以避免 iOS 应用中的内存泄漏" class="aBlack">如何正确使用 dealloc 以避免 iOS 应用中的内存泄漏</a></li> <li><a href="https://www.zhengruan.com/news/736195" title="深入理解 Objective-C 中的 dealloc 方法:内存管理核心机制" class="aBlack">深入理解 Objective-C 中的 dealloc 方法:内存管理核心机制</a></li> <li><a href="https://www.zhengruan.com/news/736194" title="理解 native2ascii:Java 国际化开发中的字符编码工具" class="aBlack">理解 native2ascii:Java 国际化开发中的字符编码工具</a></li> <li><a href="https://www.zhengruan.com/news/736193" title="如何使用 native2ascii 转换中文字符为 Unicode 转义序列" class="aBlack">如何使用 native2ascii 转换中文字符为 Unicode 转义序列</a></li> <li><a href="https://www.zhengruan.com/news/736192" title="Java native2ascii 命令详解:解决属性文件乱码问题" class="aBlack">Java native2ascii 命令详解:解决属性文件乱码问题</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/news/soft745479" title="PixPin"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260814/178670218862435.png" alt="PixPin"></a></span> <dl> <dt><a href="https://www.zhengruan.com/news/soft745479" title="PixPin" class="aBlack">PixPin</a></dt> <dd class="unstar unstar5"></dd> <dd class="cont1">¥8.00-¥8.00</dd> </dl> <div class="clear"></div> </li> <li> <span><a href="https://www.zhengruan.com/news/soft745478" title="Total Uninstall"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260814/178670216712038.png" alt="Total Uninstall"></a></span> <dl> <dt><a href="https://www.zhengruan.com/news/soft745478" title="Total Uninstall" class="aBlack">Total Uninstall</a></dt> <dd class="unstar unstar4"></dd> <dd class="cont1">¥29.00-¥29.00</dd> </dl> <div class="clear"></div> </li> <li> <span><a href="https://www.zhengruan.com/news/soft745474" title="酷呆桌面"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260814/178670214025347.png" alt="酷呆桌面"></a></span> <dl> <dt><a href="https://www.zhengruan.com/news/soft745474" title="酷呆桌面" class="aBlack">酷呆桌面</a></dt> <dd class="unstar unstar4"></dd> <dd class="cont1">¥31.50-¥35.00</dd> </dl> <div class="clear"></div> </li> <li> <span><a href="https://www.zhengruan.com/news/soft745473" title="ByePhotos"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260814/178670212958742.png" alt="ByePhotos"></a></span> <dl> <dt><a href="https://www.zhengruan.com/news/soft745473" title="ByePhotos" class="aBlack">ByePhotos</a></dt> <dd class="unstar unstar5"></dd> <dd class="cont1">¥31.50-¥45.00</dd> </dl> <div class="clear"></div> </li> <li> <span><a href="https://www.zhengruan.com/news/soft745472" title="TTime"><img onerror="this.src='https://www.zhengruan.com/statics/www/zrimages/404_bg.png'" src="https://www.zhengruan.com/uploads/20260814/178670211915223.png" alt="TTime"></a></span> <dl> <dt><a href="https://www.zhengruan.com/news/soft745472" title="TTime" class="aBlack">TTime</a></dt> <dd class="unstar unstar4"></dd> <dd class="cont1">¥3.00-¥3.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="https://beian.miit.gov.cn/" target="" style="text-decoration: none;"> <font color="#9b9db0">苏ICP备2026018738号-1 联系邮箱:bd@zhengruan.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?3835539565b311d85319cd21da8fd0d9"; 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':"715072"}, 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/715072"}) }) </script> </body> </html>