浏览器不允许直接双击打开使用 ES 模块的页面。 macOS:双击游戏文件夹里的 开始游戏.command 其它系统:在文件夹里运行 npm start 或 python3 -m http.server 8765,然后访问 http://localhost:8765