在Angular 9版本中,静态数据默认为false。当你想在ngOnInit中访问子元素时,请使用static:true。 @ViewChild装饰器和ngAfterViewInit. 当父 ...
確定! 回上一頁