导航选中,背景变色效果

//导航选中背景变色
$('.x_menu ul li a').click(function(){
$(this).addClass('x_on').parent().siblings().find('a').removeClass('x_on');
});

原文地址:https://www.cnblogs.com/fkcqwq/p/8366003.html