當呼叫未知元素(比如自訂的元素名 popup-element )時,該方法會返回泛化型別,比如 HTMLELement ,這時候TypeScript 就無法推斷出所返回元素的正確型別。
確定! 回上一頁