小议ASP.NET模板引擎技术的使用
创始人
2024-06-08 10:00:43
0

我们将从PHP模板引擎技术谈谈ASP.NET模板引擎技术,希望通过本文的实例和代码,能让大家在今后的开发过程中更加灵活的运用ASP.NET模板引擎技术。

以前听我朋友说起php的模板引擎技术的时候似懂非懂哪时感觉真的很强,一直在想asp.net有这种技术吗?我不知道我的理解是不是对的.其实asp.net模板引擎技术就是先建好一个静态的html页面我们称它为模板页,你如果有不同形式的页面哪就得建立不同的静态模板页,然后在后台用文件操作往这个文件里写东西然后在把这个模板页另存到一个静态页面的目录,不好意思可能我的理解太俗,如果有更好的理解和想法可以在apolov发文章告诉我谢谢。现在我附加一下代码

Default.aspx这个页面只有几个textbox控件和两个按妞控件

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" ValidateRequest="false" Inherits="ToHtml._Default" %> 
  2.  
  3.  
  4.  
  5.     Asp.net生成静态页 
  6.  
  7.  
  8.      
  9.     
     
  10.         标题: 
  11.         内容:            Width="350px"> 
  12.          
  13.          
  14.          
  15.          
  16.         Url地址: 
  17.          
  18.          
  19.         
 
  •      
  •  
  •  
  • 要准备的模板页代码,htm文件页面比较简单,如果有兴趣的朋友可以做成更复杂的模板页嘿嘿

    1. !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2.  xmlns="http://www.w3.org/1999/xhtml" > 
    3.  
    4.     </FONT></STRONG> $title$ 生成静态页title<STRONG><FONT color=#006699>></FONT></STRONG> <LI class=alt>    <STRONG><FONT color=#006699><style</FONT></STRONG> <FONT color=#ff0000>type</FONT>=<FONT color=#0000ff>"text/css"</FONT><STRONG><FONT color=#006699>></FONT></STRONG> <LI class=""><!--  <LI class=alt>.STYLE1 {  <LI class=""> font-size: 16px;  <LI class=alt> font-weight: bold;  <LI class="">}  <LI class=alt>--<STRONG><FONT color=#006699>></FONT></STRONG> <LI class="">    <STRONG><FONT color=#006699></style></FONT></STRONG> <LI class=alt><STRONG><FONT color=#006699></head></FONT></STRONG> <LI class=""><STRONG><FONT color=#006699><body></FONT></STRONG> <LI class=alt><STRONG><FONT color=#006699><br</FONT></STRONG> <STRONG><FONT color=#006699>/></FONT></STRONG> <LI class=""><STRONG><FONT color=#006699><br</FONT></STRONG> <STRONG><FONT color=#006699>/></FONT></STRONG> <LI class=alt><STRONG><FONT color=#006699><table</FONT></STRONG> <FONT color=#ff0000>width</FONT>=<FONT color=#0000ff>"100%"</FONT> <FONT color=#ff0000>border</FONT>=<FONT color=#0000ff>"0"</FONT> <FONT color=#ff0000>bgcolor</FONT>=<FONT color=#0000ff>"#339900"</FONT><STRONG><FONT color=#006699>></FONT></STRONG> <LI class="">  <STRONG><FONT color=#006699><tr></FONT></STRONG> <LI class=alt>    <STRONG><FONT color=#006699><td</FONT></STRONG> <FONT color=#ff0000>height</FONT>=<FONT color=#0000ff>"34"</FONT> <FONT color=#ff0000>align</FONT>=<FONT color=#0000ff>"center"</FONT> <FONT color=#ff0000>bgcolor</FONT>=<FONT color=#0000ff>"#FFFFFF"</FONT><STRONG><FONT color=#006699>><span</FONT></STRONG> <FONT color=#ff0000>class</FONT>=<FONT color=#0000ff>"STYLE1"</FONT><STRONG><FONT color=#006699>></FONT></STRONG>$title$ <STRONG><FONT color=#006699></span></td></FONT></STRONG> <LI class="">  <STRONG><FONT color=#006699></tr></FONT></STRONG> <LI class=alt>  <STRONG><FONT color=#006699><tr></FONT></STRONG> <LI class="">    <STRONG><FONT color=#006699><td</FONT></STRONG> <FONT color=#ff0000>height</FONT>=<FONT color=#0000ff>"42"</FONT> <FONT color=#ff0000>bgcolor</FONT>=<FONT color=#0000ff>"#FFFFFF"</FONT><STRONG><FONT color=#006699>><br</FONT></STRONG> <STRONG><FONT color=#006699>/></FONT></STRONG> <LI class=alt>      <STRONG><FONT color=#006699><br</FONT></STRONG> <STRONG><FONT color=#006699>/></FONT></STRONG> <LI class="">    内容:$content$ <STRONG><FONT color=#006699></td></FONT></STRONG> <LI class=alt>  <STRONG><FONT color=#006699></tr></FONT></STRONG> <LI class=""><STRONG><FONT color=#006699></table></FONT></STRONG> <LI class=alt> <LI class=""><STRONG><FONT color=#006699></body></FONT></STRONG> <LI class=alt><STRONG><FONT color=#006699></html></FONT></STRONG> </LI></OL></PRE> <P>后台生成静态页面的代码Default.aspx.cs主要用到了文件操做</P><PRE><OL class=dp-c><LI class=alt>sing System;  <LI class=""><STRONG><FONT color=#006699>using</FONT></STRONG> System.Data;  <LI class=alt><STRONG><FONT color=#006699>using</FONT></STRONG> System.Configuration;  <LI class=""><STRONG><FONT color=#006699>using</FONT></STRONG> System.Web;  <LI class=alt><STRONG><FONT color=#006699>using</FONT></STRONG> System.Web.Security;  <LI class=""><STRONG><FONT color=#006699>using</FONT></STRONG> System.Web.UI;  <LI class=alt><STRONG><FONT color=#006699>using</FONT></STRONG> System.Web.UI.WebControls;  <LI class=""><STRONG><FONT color=#006699>using</FONT></STRONG> System.Web.UI.WebControls.WebParts;  <LI class=alt><STRONG><FONT color=#006699>using</FONT></STRONG> System.Web.UI.HtmlControls;  <LI class=""><STRONG><FONT color=#006699>using</FONT></STRONG> System.Net;  <LI class=alt><STRONG><FONT color=#006699>using</FONT></STRONG> System.Text;  <LI class=""><STRONG><FONT color=#006699>using</FONT></STRONG> System.IO;  <LI class=alt> <LI class=""><STRONG><FONT color=#006699>namespace</FONT></STRONG> ToHtml  <LI class=alt>{  <LI class="">    <FONT color=#008200>//51aspx.com生成静态页演示文件,转载请保留该信息 </FONT> <LI class=alt>    <STRONG><FONT color=#006699>public</FONT></STRONG> partial <STRONG><FONT color=#006699>class</FONT></STRONG> _Default : System.Web.UI.Page  <LI class="">    {  <LI class=alt>        <STRONG><FONT color=#006699>protected</FONT></STRONG> <STRONG><FONT color=#006699>void</FONT></STRONG> Page_Load(<STRONG><FONT color=#006699>object</FONT></STRONG> sender, EventArgs e)  <LI class="">        {  <LI class=alt>             <LI class="">        }  <LI class=alt> <LI class="">        <FONT color=#008200>//根据模板生成,保持在html文件夹中(部分源码搜集于网络) </FONT> <LI class=alt>        <STRONG><FONT color=#006699>protected</FONT></STRONG> <STRONG><FONT color=#006699>void</FONT></STRONG> Button1_Click(<STRONG><FONT color=#006699>object</FONT></STRONG> sender, EventArgs e)  <LI class="">        {  <LI class=alt>            <FONT color=#008200>//源码是替换掉模板中的特征字符 </FONT> <LI class=""> <LI class=alt>            <STRONG><FONT color=#006699>string</FONT></STRONG> mbPath =Server.MapPath(<FONT color=#0000ff>"template.htm"</FONT>);  <LI class="">            Encoding code = Encoding.GetEncoding(<FONT color=#0000ff>"gb2312"</FONT>);  <LI class=alt>            StreamReader sr = <STRONG><FONT color=#006699>null</FONT></STRONG>;  <LI class="">            StreamWriter sw = <STRONG><FONT color=#006699>null</FONT></STRONG>;  <LI class=alt>            <STRONG><FONT color=#006699>string</FONT></STRONG> str = <STRONG><FONT color=#006699>null</FONT></STRONG>;  <LI class=""> <LI class=alt>            <FONT color=#008200>//读取 </FONT> <LI class="">            <STRONG><FONT color=#006699>try</FONT></STRONG> <LI class=alt>            {  <LI class="">                sr = <STRONG><FONT color=#006699>new</FONT></STRONG> StreamReader(mbPath, code);  <LI class=alt>                str = sr.ReadToEnd();  <LI class=""> <LI class=alt>            }  <LI class="">            <STRONG><FONT color=#006699>catch</FONT></STRONG> (Exception ex)  <LI class=alt>            {  <LI class="">                <STRONG><FONT color=#006699>throw</FONT></STRONG> ex;  <LI class=alt>            }  <LI class="">            <STRONG><FONT color=#006699>finally</FONT></STRONG> <LI class=alt>            {  <LI class="">                sr.Close();  <LI class=alt>            }  <LI class=""> <LI class=alt>            <FONT color=#008200>//根据时间自动重命名,扩展名也可以自行修改 </FONT> <LI class="">            <STRONG><FONT color=#006699>string</FONT></STRONG> fileName = DateTime.Now.ToString(<FONT color=#0000ff>"yyyyMMddHHmmss"</FONT>) + <FONT color=#0000ff>".htm"</FONT>;  <LI class=alt>            str = str.Replace(<FONT color=#0000ff>"$title$"</FONT>, txtTitle.Text);<FONT color=#008200>//替换Title </FONT> <LI class="">            str = str.Replace(<FONT color=#0000ff>"$content$"</FONT>, txtContent.Text);<FONT color=#008200>//替换content </FONT> <LI class=alt> <LI class="">            <FONT color=#008200>//生成静态文件 </FONT> <LI class=alt>            <STRONG><FONT color=#006699>try</FONT></STRONG> <LI class="">            {  <LI class=alt>                sw = <STRONG><FONT color=#006699>new</FONT></STRONG> StreamWriter(Server.MapPath(<FONT color=#0000ff>"htm/"</FONT>) + fileName, <STRONG><FONT color=#006699>false</FONT></STRONG>, code);  <LI class="">                sw.Write(str);  <LI class=alt>                sw.Flush();  <LI class=""> <LI class=alt>            }  <LI class="">            <STRONG><FONT color=#006699>catch</FONT></STRONG> (Exception ex)  <LI class=alt>            {  <LI class="">                <STRONG><FONT color=#006699>throw</FONT></STRONG> ex;  <LI class=alt>            }  <LI class="">            <STRONG><FONT color=#006699>finally</FONT></STRONG> <LI class=alt>            {  <LI class="">                sw.Close();  <LI class=alt>                Response.Write(<FONT color=#0000ff>"恭喜<a href=htm/"</FONT>+fileName+<FONT color=#0000ff>" target=_blank>"</FONT>+fileName+<FONT color=#0000ff>"</a>已经生成,保存在htm文件夹下!"</FONT>);  <LI class="">            }  <LI class=alt> <LI class=""> <LI class=alt>        }  <LI class=""> <LI class=alt> <LI class="">        <FONT color=#008200>//根据Url地址生成静态页保持 </FONT> <LI class=alt>        <STRONG><FONT color=#006699>protected</FONT></STRONG> <STRONG><FONT color=#006699>void</FONT></STRONG> Button2_Click(<STRONG><FONT color=#006699>object</FONT></STRONG> sender, EventArgs e)  <LI class="">        {  <LI class=alt>            Encoding code = Encoding.GetEncoding(<FONT color=#0000ff>"utf-8"</FONT>);  <LI class="">            StreamReader sr = <STRONG><FONT color=#006699>null</FONT></STRONG>;  <LI class=alt>            StreamWriter sw = <STRONG><FONT color=#006699>null</FONT></STRONG>;  <LI class="">            <STRONG><FONT color=#006699>string</FONT></STRONG> str = <STRONG><FONT color=#006699>null</FONT></STRONG>;  <LI class=alt> <LI class="">            <FONT color=#008200>//读取远程路径 </FONT> <LI class=alt>            WebRequest temp = WebRequest.Create(txtUrl.Text.Trim());  <LI class="">            WebResponse myTemp = temp.GetResponse();  <LI class=alt>            sr = <STRONG><FONT color=#006699>new</FONT></STRONG> StreamReader(myTemp.GetResponseStream(), code);  <LI class="">            <FONT color=#008200>//读取 </FONT> <LI class=alt>            <STRONG><FONT color=#006699>try</FONT></STRONG> <LI class="">            {  <LI class=alt>                sr = <STRONG><FONT color=#006699>new</FONT></STRONG> StreamReader(myTemp.GetResponseStream(), code);  <LI class="">                str = sr.ReadToEnd();  <LI class=alt> <LI class="">            }  <LI class=alt>            <STRONG><FONT color=#006699>catch</FONT></STRONG> (Exception ex)  <LI class="">            {  <LI class=alt>                <STRONG><FONT color=#006699>throw</FONT></STRONG> ex;  <LI class="">            }  <LI class=alt>            <STRONG><FONT color=#006699>finally</FONT></STRONG> <LI class="">            {  <LI class=alt>                sr.Close();  <LI class="">            }  <LI class=alt>            <STRONG><FONT color=#006699>string</FONT></STRONG> fileName = DateTime.Now.ToString(<FONT color=#0000ff>"yyyyMMddHHmmss"</FONT>) + <FONT color=#0000ff>".html"</FONT>;  <LI class=""> <LI class=alt>            <FONT color=#008200>//写入 </FONT> <LI class="">            <STRONG><FONT color=#006699>try</FONT></STRONG> <LI class=alt>            {  <LI class="">                sw = <STRONG><FONT color=#006699>new</FONT></STRONG> StreamWriter(Server.MapPath(<FONT color=#0000ff>"htm/"</FONT>) + fileName, <STRONG><FONT color=#006699>false</FONT></STRONG>, code);  <LI class=alt>                sw.Write(str);  <LI class="">                sw.Flush();  <LI class=alt> <LI class="">            }  <LI class=alt>            <STRONG><FONT color=#006699>catch</FONT></STRONG> (Exception ex)  <LI class="">            {  <LI class=alt>                <STRONG><FONT color=#006699>throw</FONT></STRONG> ex;  <LI class="">            }  <LI class=alt>            <STRONG><FONT color=#006699>finally</FONT></STRONG> <LI class="">            {  <LI class=alt>                sw.Close();  <LI class="">                Response.Write(<FONT color=#0000ff>"恭喜<a href=htm/"</FONT> + fileName + <FONT color=#0000ff>" target=_blank>"</FONT> + fileName + <FONT color=#0000ff>"</a>已经生成,保存在htm文件夹下!"</FONT>);  <LI class=alt>            }  <LI class=""> <LI class=alt>        }  <LI class="">    }  <LI class=alt>} </LI></OL></PRE> <P>原文标题:<FONT color=#0000ff>Asp.net模板引擎技术</FONT></P> <P>链接:<FONT color=#0000ff>http://www.cnblogs.com/resoar/archive/2009/10/09/1579370.html</FONT></P> <P>【编辑推荐】</P> <OL> <LI><FONT color=#0000ff>ASP.NET MVC单元测试:HttpContext类的Path属性解惑</FONT> <LI><FONT color=#0000ff>自定义的ControllerFactory:接口实现,支持Area</FONT> <LI><FONT color=#0000ff>ASP.NET Routing之“解析URL”功能详解</FONT> <LI><FONT color=#0000ff>为ASP.NET MVC应用添加自定义路由</FONT> <LI>学习ASP.NET MVC路由的使用方法 </LI></OL> <!--end::Text--> </div> <!--end::Description--> <div class="mt-5"> <!--关键词搜索--> </div> <div class="mt-5"> <p class="fc-show-prev-next"> <strong>上一篇:</strong><a href="/chengxu/22607.html">Novell CTO:推动云计算应用必须的三个要素</a><br> </p> <p class="fc-show-prev-next"> <strong>下一篇:</strong><a href="/chengxu/22609.html">开发热点周报:Windows 7代码大赛 ASP.NET MVC 2再更新</a> </p> </div> <!--begin::Block--> <div class="d-flex flex-stack mb-2 mt-10"> <!--begin::Title--> <h3 class="text-dark fs-5 fw-bold text-gray-800">相关内容</h3> <!--end::Title--> </div> <div class="separator separator-dashed mb-9"></div> <!--end::Block--> <div class="row g-10"> </div> </div> <!--end::Table widget 14--> </div> <!--end::Col--> <!--begin::Col--> <div class="col-xl-4 mt-0"> <!--begin::Chart Widget 35--> <div class="card card-flush h-md-100"> <!--begin::Header--> <div class="card-header pt-5 "> <!--begin::Title--> <h3 class="card-title align-items-start flex-column"> <!--begin::Statistics--> <div class="d-flex align-items-center mb-2"> <!--begin::Currency--> <span class="fs-5 fw-bold text-gray-800 ">热门资讯</span> <!--end::Currency--> </div> <!--end::Statistics--> </h3> <!--end::Title--> </div> <!--end::Header--> <!--begin::Body--> <div class="card-body pt-3"> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('/static/assets/images/nopic.gif')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/241137.html" class="text-dark fw-bold text-hover-primary fs-6">如何允许远程连接到MySQL数...</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7">[[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...</span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('/static/assets/images/nopic.gif')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/61017.html" class="text-dark fw-bold text-hover-primary fs-6">如何利用交换机和端口设置来管理...</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7">在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...</span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('/static/assets/images/nopic.gif')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/119031.html" class="text-dark fw-bold text-hover-primary fs-6">施耐德电气数据中心整体解决方案...</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7">近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...</span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('https://files.pic99.top/shayuweb/202407/da6c51fc268b.jpg')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/82595.html" class="text-dark fw-bold text-hover-primary fs-6">Windows恶意软件20年“...</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7">在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...</span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('https://files.pic99.top/shayuweb/202409/eb2e03366045d9f.jpg')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/139440.html" class="text-dark fw-bold text-hover-primary fs-6">20个非常棒的扁平设计免费资源</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7">Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...</span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('/static/assets/images/nopic.gif')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/27164.html" class="text-dark fw-bold text-hover-primary fs-6">2009 IBM动态架构新动力...</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7"></span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('/static/assets/images/nopic.gif')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/225.html" class="text-dark fw-bold text-hover-primary fs-6">通过 XML 进行内容发布</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7"></span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('/static/assets/images/nopic.gif')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/130901.html" class="text-dark fw-bold text-hover-primary fs-6">德国电信门户网站可实时显示全球...</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7">德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...</span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('https://files.pic99.top/shayuweb/202403/3888b00968de30e.jpg')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/884.html" class="text-dark fw-bold text-hover-primary fs-6">着眼MAC地址,解救无法享受D...</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7">在安装了DHCP服务器的局域网环境中,每一台工作站在上网之前,都要先从DHCP服务器那里享受到地址动...</span> </div> <!--end::Title--> </div> <!--begin::Item--> <div class="d-flex flex-stack mb-7"> <!--begin::Symbol--> <div class="symbol symbol-60px symbol-2by3 me-4"> <div class="symbol-label" style="background-image: url('https://files.pic99.top/shayuweb/202503/5fe82cca6c5ff78.jpg')"></div> </div> <!--end::Symbol--> <!--begin::Title--> <div class="m-0"> <a href="/chengxu/246646.html" class="text-dark fw-bold text-hover-primary fs-6">为啥国人偏爱 Mybatis,...</a> <span class="text-gray-600 fw-semibold d-block pt-1 fs-7">关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...</span> </div> <!--end::Title--> </div> </div> <!--end::Body--> </div> <!--end::Chart Widget 35--> </div> <!--end::Col--> </div> </div> <!--end::Content container--> </div> <!--end::Content--> </div> <!--end::Content wrapper--> <!--begin::Footer--> <div id="kt_app_footer" class="app-footer"> <!--begin::Footer container--> <div class="app-container container-xxl d-flex flex-column flex-md-row flex-center flex-md-stack py-3"> <!--begin::Copyright--> <div class="text-dark order-2 order-md-1"> <span class="text-muted fw-semibold me-1">2025 ©</span> <a href="/" target="_blank" class="text-gray-800 text-hover-primary">鲨鱼网</a> <a href="https://beian.miit.gov.cn/" target="_blank" class="text-gray-800 text-hover-primary"></a> <a href="http://spbjmm.com.shayuweb.com">上品网</a><a href="http://www.zzszq.net/">深知网</a><a href="http://www.taiyangwa.net/">太阳生活网</a><a href="http://baike.taiyangwa.net/">太阳百科网</a><a href="http://ypkjmy.com.shayuweb.com/">一品科技</a><a href="http://www.yuansudz.com/news/">元素网</a><a href="http://www.xn--i6qw12a.com/">帛典网</a><a href="http://xldmm.com.shayuweb.com/">星链岛</a> </div> <!--end::Copyright--> <!--begin::Menu--> <ul class="menu menu-gray-600 menu-hover-primary fw-semibold order-1"> <li class="menu-item"> <a href="/news/" target="_blank" class="menu-link px-2">科技资讯</a> </li> <li class="menu-item"> <a href="/chengxu/" target="_blank" class="menu-link px-2">程序开发</a> </li> <li class="menu-item"> <a href="/sitemap.xml" target="_blank" class="menu-link px-2">sitemap</a> </li> </ul> <!--end::Menu--> </div> <!--end::Footer container--> </div> <!--end::Footer--> </div> <!--end:::Main--> </div> <!--end::Wrapper--> </div> <!--end::Page--> </div> <!--end::App--> <div id="kt_scrolltop" class="scrolltop" data-kt-scrolltop="true"> <!--begin::Svg Icon | path: icons/duotune/arrows/arr066.svg--> <span class="svg-icon"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect opacity="0.5" x="13" y="6" width="13" height="2" rx="1" transform="rotate(90 13 6)" fill="currentColor"></rect> <path d="M12.5657 8.56569L16.75 12.75C17.1642 13.1642 17.8358 13.1642 18.25 12.75C18.6642 12.3358 18.6642 11.6642 18.25 11.25L12.7071 5.70711C12.3166 5.31658 11.6834 5.31658 11.2929 5.70711L5.75 11.25C5.33579 11.6642 5.33579 12.3358 5.75 12.75C6.16421 13.1642 6.83579 13.1642 7.25 12.75L11.4343 8.56569C11.7467 8.25327 12.2533 8.25327 12.5657 8.56569Z" fill="currentColor"></path> </svg> </span> <!--end::Svg Icon--> </div> <!--begin::Javascript--> <script>var hostUrl = "/static/default/pc/";</script> <!--begin::Global Javascript Bundle(mandatory for all pages)--> <script src="/static/default/pc/plugins/global/plugins.bundle.js"></script> <script src="/static/default/pc/js/scripts.bundle.js"></script> <!--end::Global Javascript Bundle--> <!--end::Javascript--> </body> <!--end::Body--> </html>