You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```warn header="Modules work only via HTTP(s), not in local files"
61
-
If you try to open a web-page locally, via `file://` protocol, you'll find that `import/export` directives don't work. Use a local web-server, such as [static-server](https://www.npmjs.com/package/static-server#getting-started) or use the "live server" capability of your editor, such as VS Code [Live Server Extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) to test modules.
60
+
```warn header="模块只通过 HTTP(s) 工作,在本地文件则不行"
61
+
如果你尝试通过 `file://` 协议在本地打开一个网页,你会发现 `import/export` 指令不起作用。你可以使用本地 Web 服务器,例如 [static-server](https://www.npmjs.com/package/static-server#getting-started),或者使用编辑器的“实时服务器”功能,例如 VS Code 的 [Live Server Extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) 来测试模块。
0 commit comments