Repository navigation
186+ menu.find("a[href='#"+id+"']").parents("li").addClass("active");186187 } else {187188 device.attr('id', '');188189
189190 //找到之前最近一个有id的190191 var prev = contentSectionItem.prev();191192 while(prev[0] && !prev.attr("id")) prev = prev.prev();192193 if(prev[0]) {193- var menuItem = menu.find("a[href='#"+prev.attr("id")+"']").parents("li").addClass("active");194+ menu.find("a[href='#"+prev.attr("id")+"']").parents("li").addClass("active");194195 }195196 }196197 if (!contentSectionItem.hasClass('informational')) {
0 commit comments