var href = "";
//遍历a标签
$ ( "a"). each (function () {
href = $( this ).attr ( "href" );
//获取当前的url
var url = window .location . href;
url = url. split ("Organization" );
url = "/Organization" + url [ 1];
//如果当前Url符合某个a标签的url,则设置其样式
if ( url == href ) {
$ ( this). addClass ("cur" );
return false ;
}
});