ES6中如果你希望外部能夠讀取模組內部的某個變數,就必須使用export關鍵 ... //export.jsexport var foo = 'bar'; 瀏覽器載入ES6. ... JavaScript ES6.
確定! 回上一頁