es6 如何一行代码直接导入并同时导出文件中的方法

// myModule.js
export { default as greeting } from './greeting.js';
export { add, subtract } from './math.js';

 

posted @ 2023-11-01 17:40  蓓蕾心晴  阅读(36)  评论(0编辑  收藏  举报