标签:parent open win list add find ati function rem
$("ul.nav-list li a").each(function () {
//$("ul.nav-list li").removeClass("active");
if ($($(this))[0].href == String(window.location))
if ($(this).parent().find("li").length == 0) {
$(this).parent().addClass("active");
}
else {
$(this).parent().addClass("active open");
}
});
标签:parent open win list add find ati function rem
原文地址:http://www.cnblogs.com/hofmann/p/7169800.html