您的位置:首页 > 其它

给点击哪个导航给哪个导航加背景

2017-11-02 14:56 253 查看
<script type="text/javascript">

$(document).ready(function(){

$(".menu a").each(function(){

$this = $(this);

if($this[0].href==String(window.location)){

$this.addClass("on");

}

});

});

</script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: