<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

King Cms开发经验分享

时间:2021-05-28

1、前端如何不调用系统的JS文件(jquery.js和jquery.kc.js)

 

打开文件system/lib/kc_template_class.php文件,加一个判断即可(红色字):

 

if(strstr($s, '{king:faq/}') || strstr($s, '{lang:system.common.login/}'))//后台代码才加入js文件

{

$s=preg_replace('%(</title[^>]*>)0771china.king',"\${1}\n<meta name=\"generator\" content=\"KingCMS\"/>\n<script type=\"text/javascript\" src=\"".$king->config('inst')."system/js/jquery.js\"></script>\n<script type=\"text/javascript\" src=\"".$king->config('inst')."system/js/jquery.kc.js\"></script>",$s,1);

}


0
首页
案例
关于
联系