在Node.js的14版本中,有两种脚本:有老式的CommonJS(CJS)和新型的ESM(又名MJS)。 CJS使用require()、module.exports;; ESM使用import、export。
確定! 回上一頁