include、extends用法和区别

        page2 < /title > < /head > <body > <div id = "app1" >     <a >模板内容 < /a >     < input type = "button" value = "点我弹窗" @click = "click1" / >     <a >message < /a > < /div > < /body > < /html ></code><br/></pre><p>可以看到base2.html被导入到了page2.html文件中,相当于代码复用。</p><p><img src="/upload/ad_content/xuanchuantu-10.jpg"></p><p><a href="https://www.cdcxhl.com/city/jiagedaqi.html" target="_blank">加格达奇网站建设公司</a><a href="https://www.cdcxhl.com/" target="_blank">成都创新互联</a>,加格达奇网站设计制作,有大型网站制作公司丰富经验。已为加格达奇超过千家提供企业网站建设服务。企业网站搭建\<a href="https://www.cdcxhl.com/waimao.html" target="_blank">外贸营销网站建设</a>要多少钱,请找那个售后服务好的<a href="https://www.cdcxhl.com/zuo/jiagedaqi.html" target="_blank">加格达奇做网站</a>的公司定做!</p><h3> 总结</h3><p>extends主要用于同一主题的网页,网页之间的框架大体相同,include主要用于多个html中有相同的代码。<br/>二者是可以一起使用的,这么看extends和include用处刚好是相反的。</p></div> <br> 分享标题:include、extends用法和区别 <br> 标题URL:<a href="http://scpengxi.com/article/iecocc.html">http://scpengxi.com/article/iecocc.html</a> </div> </div> <div class="contentr fr"> <h3>其他资讯</h3> <ul> <li> <a href="/article/csecc.html">选择云服务器配置需要注意什么?</a> </li><li> <a href="/article/dogjpp.html">云服务器cvm是什么意思-创新互联</a> </li><li> <a href="/article/ceijsj.html">如何设置margin和padding为0可去掉DIV与DIV的空白-创新互联</a> </li><li> <a href="/article/eisjjh.html">杭州呼和浩特抖音代运营</a> </li><li> <a href="/article/jdpgec.html">ThinkPHP封装方法的概念和使用方法是什么</a> </li><li> <a href="/article/pshoih.html">怎么在ES6中使用export和import实现模块化</a> </li><li> <a href="/article/dciichd.html">帝国cms制作网站地图 帝国cms自定义页面</a> </li><li> <a href="/article/dcjdisg.html">代理服务器安全证书 代理服务器的安全证书</a> </li><li> <a href="/article/dececgp.html">接收无线信号的路由器 接收无线信号的设备</a> </li><li> <a href="/article/copsjoj.html">互联网企业主机工作流程,以电子商务网站为例讲解</a> </li> </ul> </div> </div> </div> <!--底部--> <footer> <div class="foot"> <div class="container"> <h1>蓬溪谬誉钊凯建站您身边的网站制作服务商</h1> <div class="foot1"> <ul> <li> <dl><i class="iconfont"></i><b>地址ADDRESS</b></dl> <p>四川-成都青羊区太升南路288号<br> 锦天国际A座10楼 </p> </li> <li> <dl><i class="iconfont"></i><b>电话/TEL</b></dl> <p><a href="tel:02886922220" target="_blank">028 86922220</a> (工作日)<br> <a href="tel:18980820575" target="_blank">1898082 0575</a> ( 7x24 ) </p> </li> <li> <dl><i class="iconfont"></i><b>QQ咨询</b></dl> <p> 244261566 (售前)<br> 631063699 (售后) </p> </li> <li> <dl><i class="iconfont"></i><b>邮箱/E: mail</b></dl> <p> service@cdcxhl.com (业务)<br> hr@cdcxhl.com (求职) </p> </li> </ul> </div> <div class="link"> 友情链接: <a href="http://www.rfmqp.com/" title="阿坝网站建设" target="_blank">阿坝网站建设</a>   <a href="http://www.kmujtlk.com/" title="昆明龙门洗车机" target="_blank">昆明龙门洗车机</a>   <a href="http://www.cdtuoyun.cn/" title="成都航空宠物托运公司" target="_blank">成都航空宠物托运公司</a>   <a href="http://www.cihrgo.com/" title="昆明家用电器公司" target="_blank">昆明家用电器公司</a>   <a href="http://www.cxhljz.cn/app/" title="成都App定制" target="_blank">成都App定制</a>   <a href="http://chengdu.cdcxhl.cn/jianshe/ " title="成都网站建设公司" target="_blank">成都网站建设公司</a>   <a href="https://www.cdxwcx.com/wangzhan/case/dfjg.html" title="东电技服" target="_blank">东电技服</a>   <a href="https://www.cdxwcx.com/wangzhan/muban.html" title="成都成品网站" target="_blank">成都成品网站</a>   <a href="http://www.duxgw.com/" title="郫都区企业注销代办" target="_blank">郫都区企业注销代办</a>   <a href="http://www.stxfdj.com/" title="三台县发电机公司" target="_blank">三台县发电机公司</a>    </div> </div> </div> <div class="copy container"> Copyright © 2025 All Rights Reserved. 成都谬誉钊凯广告有限公司 版权所有 <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow">蜀ICP备2024104775号-15</a> [原创设计,独立版权。未经许可.不得拷贝或镜像]<br> <a href="http://www.kswsj.cn/" target="_blank">网站营销推广</a> | <a href="https://www.cdcxhl.com/pinpai.html" target="_blank">品牌网站设计</a> | <a href="http://www.cdweb.net/" target="_blank">自适应网站制作</a> | <a href="http://cdkjz.cn/wangzhan/pinpai/" target="_blank">品牌网站制作</a> | <a href="http://chengdu.cdxwcx.cn/" target="_blank">成都网站制作</a> | <a href="https://www.cdcxhl.com/cloud/" target="_blank">云服务器</a> | <a href="https://www.cdcxhl.com/weihu/abazhou.html" target="_blank">蓬溪网站维护</a> | (蓬溪网站制作QQ : 631063699 )</div> </footer> <!--在线咨询--> <div class="fot"> <ul> <li> <a href="mqqwpa://im/chat?chat_type=wpa&uin=532337155&version=1&src_type=web&web_src=oicqzone.com" target="_blank"> <img src="/Public/Home/img/fot1.png" alt="建站咨询"> <p>在线咨询</p> </a> </li> <li> <a href="tel:18980820575" target="_blank"> <img src="/Public/Home/img/fot2.png" alt="建站电话"> <p>拨打电话</p> </a> </li> </ul> </div> </body> </html> <script> $(".con img").each(function(){ var src = $(this).attr("src"); //获取图片地址 var str=new RegExp("http"); var result=str.test(src); if(result==false){ var url = "https://www.cdcxhl.com"+src; //绝对路径 $(this).attr("src",url); } }); window.onload=function(){ document.oncontextmenu=function(){ return false; } } </script>