来源:https://stackoverflow.com/questions/51909916/angular-renderer2-setstyle-only-if-specific-class-present-on-host 标签 angular angular-directive angular-renderer2 angular-renderer