也可以使用ViewChild 裝飾器達到一樣的效果,用於從模板檢視中獲取匹配的元素。 ... newServerContent = ''; @ViewChild('serverContentInput', { static: true }) ...
確定! 回上一頁