摘要: 一、不创建node项目怎么用node运行esm语法的js 还是正常的写两个js,这两个js之间使用 export const xx = xx import {...} from "./..." 来导入导出 只是需要: 1.把文件后缀从js改成mjs 2.使用node ./index.mjs来运行主文 阅读全文
posted @ 2025-06-14 00:23 Coder-Wang 阅读(14) 评论(0) 推荐(0)