菜单在当前页面效果

$(".menu a").each(function () {
if (window.location.href.indexOf($(this).attr("href"), 10) >=0 && $(this).attr("href") != "" && $(this).attr("href") != "#") {
给元素加响应的样式
}
})

posted on 2017-10-26 17:46  小影子棒棒哒  阅读(93)  评论(0)    收藏  举报

导航