假如你偏好ES6的export/import,從NodeJS 12開始支援實驗性質的解決方法。 ... export default str = 'default'; // module1.js import a from '.
確定! 回上一頁