currentTarget as HTMLButtonElement; button // Type is HTMLButtonElement }); Because TypeScript doesn't have access to the DOM of your page, it has no way of ...
確定! 回上一頁