diff --git "a/24.07/\346\263\250\345\205\245\344\273\273\346\204\217react\347\275\221\347\253\231.md" "b/24.07/\346\263\250\345\205\245\344\273\273\346\204\217react\347\275\221\347\253\231.md" index 92d37027..ae829b5f 100644 --- "a/24.07/\346\263\250\345\205\245\344\273\273\346\204\217react\347\275\221\347\253\231.md" +++ "b/24.07/\346\263\250\345\205\245\344\273\273\346\204\217react\347\275\221\347\253\231.md" @@ -17,7 +17,7 @@ tags: var OldWs = window.WebSocket; function NewWs(url, protocols) { - const wsInstance = OldWs(url, protocals); + const wsInstance = OldWs(url, protocols); // 实现原来功能之后,把全局变量ws赋值 window.ws = wsInstance; return wsInstance;