为了账号安全,请及时绑定邮箱和手机立即绑定

如何保存三级分类当前的状态,在页面跳转后也显示这个状态?

如何保存三级分类当前的状态,在页面跳转后也显示这个状态?

汪汪一只猫 2018-12-19 18:19:28
有一个三级分类想在链接跳转后依然保持着展开的状态js:$(".first-nav").click(function(){        if($(this).siblings(".first-nav").find(".arrow").hasClass("active90")){            $(this).siblings(".first-nav").find(".arrow").removeClass("active90");        }        $(this).siblings(".first-nav").find(".second").slideUp();        $(this).children(".arrow").toggleClass("active90");        $(this).find(".second").slideToggle();     })     $(".second-nav").click(function(event){            event.stopPropagation();                $(this).children(".arrow").toggleClass("active90");                $(this).find(".thirdwp").slideToggle();     })
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 628 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号