return has a double equal sign. How to understand this?
function init(){
var url = window.location.pathname.split( "/" );
if(url.length > 0) url = url[url.length - 1];
$("-sharpaside .active").removeClass("active");
$("-sharpaside a").filter( function() {
return url == $(this).attr("href");
}).parents("li").addClass( "active" );
}
return url == $(this).attr("href"); //
my own understanding is that if the two sides are equal, return true? Is that right? no.