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