不同页面点击添加class
$(".scrollMenuItem a").each(function() {
var _this = $(this);
if (window.location.href.indexOf(_this.attr('href')) > -1) {
_this.addClass("active").siblings().removeClass("active");
};
});
$(".scrollMenuItem a").each(function() {
var _this = $(this);
if (window.location.href.indexOf(_this.attr('href')) > -1) {
_this.addClass("active").siblings().removeClass("active");
};
});