setup 裡面的兩個參數可以獲取props和context包含(emit,attrs,slots,expose)。 範例. 父組件 <script > import HelloWorld from '@/components/HelloWorld.
確定! 回上一頁