JQuery实现页面刷新后菜单保留鼠标点击addclass的样式
2014-09-11 17:21 -夜 阅读(578) 评论(0) 收藏 举报使用Jquery
$(function () {
$("#divLefMenu li a").each(function () {
if ($($(this))[0].href == String(window.location))
$(this).parent().addClass('hover');
});
});版权声明:本文为博主原创文章,未经博主允许不得转载。
浙公网安备 33010602011771号