簡單說差別:import 是編譯中執行,CommonJS 的require 是同步加載. ... import fs from 'fs' import { default as fs } from 'fs' import * as fs ...
確定! 回上一頁