我更喜欢使用import x from 'y'语法,但我在网上看到的只是const path = require('path').
import x from 'y'
const path = require('path')
有没有办法使用这种语法导入路径模块?
javascript node.js es6-modules
es6-modules ×1
javascript ×1
node.js ×1