ES6 default and named exports
问题 I am trying to understand named and default exports. I have a seemingly basic requirement which I don't understand how to setup. I want to be able to import both: //app.js import Mod from './my-module' import { funcA, funcB } from './my-module' console.log('A', Mod.funcA(), funcA()); // A a a console.log('B', Mod.funcB(), funcB()); // A a a When I try, the closest way of doing this I get to is the following: //my-module.js export function funcA() { return 'a'; }; export function funcB() {