frontend-init.js
591 字节
define(['frontend'], function (Frontend) {
// var _53code = document.createElement("script");_53code.src = "https://tb.53kf.com/code/code/061c0643143fb48c0ba8ed392b950cb06/1?u_cust_id=1&u_cust_name=创新创业&u_custom_info=创新创业";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(_53code, s);
var navItems = $(".nav-item a");
$.each(navItems,function (k,v) {
if ($(v).data('url') + ".html" == window.location.pathname){
navItems.removeAttr('class','active');
$(v).addClass('active');
}
})
});