Common JS 匯出的是「物件」,所以可以使用key-value pair module.exports = { foo: 'foo', ... math'; // ES6,沒有用{ } ,表示匯入default 內容
確定! 回上一頁