这样? if ( this.url == '/'){ //todo } else if (this.url == 'todo'){ //todo }
if ( this.url == '/'){ //todo } else if (this.url == 'todo'){ //todo }