jq+css 获取当前页
jq $(function (){ 页面
url= document.location.pathname;
$(".admin-menu a").each(function (){//.admin-menu 换成你自己的class
href=$(this).attr("href");
if(href==url){
$(this).parent().addClass("active");
}
});
});
AD:真正免费,域名+虚机+企业邮箱=0元









