因?yàn)閮啥蝚s代碼,報(bào)錯(cuò)如圖所示

js代碼如下:
<script type="text/javascript">
TouchSlide({
slideCell: "#focus",
titCell: ".hd ul", //開(kāi)啟自動(dòng)分頁(yè) autoPage:true ,此時(shí)設(shè)置 titCell 為導(dǎo)航元素包裹層
mainCell: ".bd ul",
effect: "leftLoop",
autoPlay: true, //自動(dòng)播放
autoPage: true, //自動(dòng)分頁(yè)
delayTime:500,
interTime:3500
});
</script>
<script>
$('.news_tab li').mouseover(function (){$(this).addClass("on").siblings().removeClass("on");$(".news").eq($('.news_tab li').index(this)).show().siblings(".news").hide();});
$(".nav h2").click(function(){
$(".nav_sub").slideToggle("slow");
});
$(".share_btn").click(function(){
$(".share").slideToggle("slow");
});
$(".bds_more").click(function(){
$(".bdshare_popup_box").css("display","none");
});
})
</script>
{code} $('.news_tab li').mouseover(function (){$(this).addClass("on").siblings().removeClass("on");$(".news").eq($('.news_tab li').index(this)).show().siblings(".news").hide();}); {/code}開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
回復(fù)@迅??蚣芗夹g(shù)-李波 什么原因,不懂,以后遇到這種錯(cuò)誤怎么解決
將模板文件放到迅睿cms之前需要把原來(lái)的html文件的代碼格式化一次,用這個(gè)工具:http://tool.chinaz.com/tools/jsformat.aspx
就不會(huì)有錯(cuò)了
開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!