fix: pc nas专题页 导航选中状态
This commit is contained in:
@@ -17,9 +17,10 @@
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('.headnav .navitem').each(function(idx, item) {
|
||||
$(item).removeClass('hover');
|
||||
if (compareUrls(location.href, item.href)) {
|
||||
$(item).addClass('hover').siblings();
|
||||
var _item = $(item);
|
||||
_item.removeClass('hover');
|
||||
if (_item.attr('href') && compareUrls(location.href, _item.get(0).href)) {
|
||||
_item.addClass('hover').siblings();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user