thinkcmf的navbar锁定js处理

    window.onload=function(){
       var menuInput = $("#menu_input").val();
        $("#main-nav a").each(function () {

            if ($(this)[0].id == menuInput) {
                $(this).parent(" li").addClass("active");
            }
        });
    

thinkcmf的navbar锁定js处理_第1张图片

 thinkcmf navbar头部锁定

你可能感兴趣的:(js,javascript,前端,html)