简单试了下,async/await 都能直接编译,
async/await
但是加了一个 import { Person } from './person'之后浏览器就报错,exports is not defined.怎么能在浏览器直接支持模块。
import { Person } from './person'
exports is not defined
使用webpack等工具转换成浏览器支持的模式
1.4m articles
1.4m replys
5 comments
56.7k users