JS代码报错模板系统故障

迅睿框架 更新 2021-10-27 15:09:03 xrc123

因为两段js代码,报错如图所示

{xunruicms_img_title}

js代码如下:

<script type="text/javascript">
        TouchSlide({
            slideCell: "#focus",
            titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
            mainCell: ".bd ul",
            effect: "leftLoop",
            autoPlay: true, //自动播放
            autoPage: true, //自动分页
            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>


方案

  • 迅睿框架技术-李波 #1 · 2021-10-27 15:01:42
    {code}
    $('.news_tab li').mouseover(function (){$(this).addClass("on").siblings().removeClass("on");$(".news").eq($('.news_tab li').index(this)).show().siblings(".news").hide();});
    {/code}
  • xrc123 #2 · 2021-10-27 15:07:42
    迅睿框架技术-李波 什么原因,不懂,以后遇到这种错误怎么解决
  • 迅睿框架技术-李波 #3 · 2021-10-27 15:09:03
    将模板文件放到迅睿cms之前需要把原来的html文件的代码格式化一次,用这个工具:http://tool.chinaz.com/tools/jsformat.aspx 就不会有错了

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关