From 18ac6163851f3d825d184c5a5e136bfaa8205e8e Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Thu, 15 Mar 2018 16:15:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=BA=86=E3=80=8A?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=87=86=E5=A4=87=E4=B8=8E=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E3=80=8B=E4=B8=AD=E5=89=A9=E4=B8=8B=E7=9A=84=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/content/guide/setup.md | 7 +++++++ aio/content/navigation.json | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/setup.md b/aio/content/guide/setup.md index a84ca2d0c4..dfa1a88c0f 100644 --- a/aio/content/guide/setup.md +++ b/aio/content/guide/setup.md @@ -435,7 +435,14 @@ For real development, we strongly recommend [developing locally](guide/setup#dev ## Appendix: develop locally with IE +## 附录:使用 IE 进行本地开发 + If you develop angular locally with `ng serve`, there will be `websocket` connection being setup automatically between browser and local dev server, so when your code change, browser can automatically refresh. +如果你使用 `ng serve` 进行本地开发,就会在浏览器和本地开发服务器之间自动建立一个 `WebSocket` 连接,因此,当你的代码变化时,浏览器也会自动刷新。 + In windows, by default one application can only have 6 websocket connections, MSDN WebSocket Settings. So if IE was refreshed manunally or automatically by `ng serve`, sometimes, the websocket will not close properly, when websocket connections exceed limitations, `SecurityError` will be thrown, this error will not affect the angular application, you can just restart IE to clear this error, or modify the windows registry to update the limitations. + +在 Windows 中,默认情况下一个应用只能有六个 WebSocket 连接,参见 MSDN 中的 WebSocket 设置部分。 +所以,如果 IE 手动刷新或被 `ng serve` 触发了自动刷新,有时候 WebSocket 可能无法正常关闭,当 WebSocket 的连接数超限时,就会抛出 `SecurityError` 异常。请放心,这个异常对 Angular 应用没什么影响,你重启一下 IE 就能消除这个错误,或者修改 Windows 注册表来修改这个上限。 diff --git a/aio/content/navigation.json b/aio/content/navigation.json index e7b0ba1df0..6cffd1e7ff 100644 --- a/aio/content/navigation.json +++ b/aio/content/navigation.json @@ -360,8 +360,8 @@ "tooltip": "Angular 应用开发中的安全技术。" }, { - "title": "环境设置与部署", - "tooltip": "环境设置与部署", + "title": "环境准备与部署", + "tooltip": "环境准备与部署", "children": [ { "url": "guide/setup",