in template // @ViewChild("myEl") el: ElementRef; ngAfterViewInit(){ this.el.nativeElement.innerHTML = "Hi"; console.log(this.el); }
確定! 回上一頁