Node.js export behaves differently from ES6 modules

后端 未结 0 1578
夕颜
夕颜 2021-01-07 11:06

In ES6 modules, this works as expected:

  • index.js
import { foo, init } from "./foo";

init         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题