使用es6模块化后打开页面报错 解决方法:放在服务器里打开。在 vscod e内安装 Live Server 插件后,右击使用 Live Server 打开。 其他说明(转载): https://blog.csdn.net/qq_44163269/article/details/105116173