This commit is contained in:
icret
2022-05-25 18:23:17 +08:00
parent f95eb0dd87
commit 67ed4ff05f
11 changed files with 271 additions and 116 deletions

View File

@@ -227,4 +227,12 @@ var _hmt = _hmt || [];
hm.src = "https://hm.baidu.com/hm.js?c790ac2bdc2f385757ecd0183206108d";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
})();
// 导航状态
$('.nav-pills').find('a').each(function() {
if (this.href == document.location.href) {
$(this).parent().addClass('active'); // this.className = 'active';
}
});