创建一个add.mjs export function add(a = 1, b = 2) { return a + b } 同层级创建一个index.mjs import add from './add.mjs' console