模板里放入百度聯(lián)盟代碼后,網(wǎng)站直接奔潰
<!-- cpu feeds block -->
<div class="cpu-feeds-block" data-site-id="275541985" data-block-id="84468"></div>
<script>
(function(){var url="//cpu.baidu.com";var getEntry=function(){var script=document.createElement("script");script.id="cpu-block-entry";script.src=url+"/js/cb.js";var scriptTag=document.getElementsByTagName("script")[0];scriptTag[xss_clean].insertBefore(script,scriptTag)};var sentMsg=function(e){var msg={msg:e.toString()||"no err msg",line:e.lineno||-1};var img=document.createElement("img");img.src=url+"/msg?m=block&e="+encodeURIComponent(JSON.stringify(msg))};try{window.feedsbycpu=window.feedsbycpu||[];window.feedsbycpu.push({siteId:"275541985",blockId:"84468",display:"auto"});document.getElementById("cpu-block-entry")||getEntry()}catch(e){sentMsg(e)}})();
</script>
<!-- cpu feeds block end-->
(function(){ 加空格var url=
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅睿框架技術(shù)-于雷

加了空格還是報(bào)錯(cuò)
{后面都要加空格
{后面加回車或者空格,不然會(huì)被識(shí)別為模板標(biāo)簽的{if}
{后面加回車或者空格,不然會(huì)被識(shí)別為模板標(biāo)簽的,比如{if}