猿问

JavaScript 语法问题

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()这段代码???


拉丁的传说
浏览 471回答 1
1回答
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答