在Composition API 中,只需要使用 ref() 宣告一個與 ref attribute 相同名稱的變數、內容值為 null ,並將它回傳,即可獲取DOM。 1 2 3 4 5 6 7 ...
確定! 回上一頁