Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用websocket时,如果多次通过侧边栏切换页面,会出现点击一次按钮,发起多次websocket连接的情况 #81

Open
Runbacktoo opened this issue Jul 19, 2022 · 1 comment

Comments

@Runbacktoo
Copy link

Runbacktoo commented Jul 19, 2022

我在一个页面上做了个按钮,专门用来发起websocket连接,后来测试发现,通过侧边栏来回切换页面后,再点击按钮,就会同时发起多个websocket连接请求,有点类似按钮重叠,按钮点击我用的是$(document).on('click')方法,这是怎么回事呢?

@Runbacktoo
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant