var e = setTimeout(function() {
var e = $(window).scrollTop(),
n = $(".header-nav-wrap"),
i = $(".header-nav-wrap-inner"),
s = $(".sub-nav");
e > 200 ? n.hasClass("hn-fixed") || (n.addClass("hn-fixed"),
s.hide(),
a || i.css("top", "-80px").animate({ top: "0px"
}, 500)) : n.hasClass("hn-fixed") && (n.removeClass("hn-fixed"),
s.show())
}, 30);
帮忙解释一下从 e > 200 ? ....... s.show()这段代码???
添加回答
举报
0/150
提交
取消