c.js:
// 导入整个模块 import * as moduleB from './b.js' const {name, HOUSE, default: multiplication} = moduleB; console.log('i am moduleC') // ["ph", "别墅", 9] console.log([name, HOUSE, multiplication(3,3)])d.js:
import * as moduleE from './e.js' console.log(`moduleE.default=${moduleE.default}`)e.js:
// 此语法没有导出模块b的默认值 export * from './b.js' export default 'moduleE default value'其他章节请看:
es6 快速入门 系列