有一個三級分類想在鏈接跳轉后依然保持著展開的狀態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(); })
如何保存三級分類當前的狀態,在頁面跳轉后也顯示這個狀態?
汪汪一只貓
2018-12-19 18:19:28
