We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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连接请求,有点类似按钮重叠,按钮点击我用的是$(document).on('click')方法,这是怎么回事呢?
The text was updated successfully, but these errors were encountered:
改成$('.class_name').on就可以了,看这个文章【https://blog.csdn.net/weixin_45868762/article/details/107501774】说用$(document).on会出现重复加载的问题,不知道原因是什么
Sorry, something went wrong.
No branches or pull requests
我在一个页面上做了个按钮,专门用来发起websocket连接,后来测试发现,通过侧边栏来回切换页面后,再点击按钮,就会同时发起多个websocket连接请求,有点类似按钮重叠,按钮点击我用的是$(document).on('click')方法,这是怎么回事呢?
The text was updated successfully, but these errors were encountered: