引入方式
来源:4-2 基础API——path2

qq_陌_45
2020-01-06
import mod from './02_cusmod'
const mod = require('./02_cusmod')
为什么使用import方式引入会报错?Unexpected token import
写回答
1回答
-
Samaritan
2020-02-22
node 默认使用 CommonJS 模块规范,使用 es6 规范需要 babel 处理
00
相似问题