用export 可以指派函式、物件或變數,透過 import 宣告給外部檔案引用。 ... export default function() {} // 或是'export default class {}' // 結尾不用分號
確定! 回上一頁