Skip to content

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

Open
@Runbacktoo

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions