import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-create-test-score', templateUrl: './create-test-score.component.html', styleUrls: ['./create-test-score.component.scss'] }) export class CreateTestScoreComponent implements OnInit { constructor() { } selectedTab:number = 1 //选中的选项卡 selectTab(index){ this.selectedTab = index } ngOnInit(): void { } }