摘要: 1.vue实现websocket 1.1初始化websocket //this为vue全局变量 if (typeof (WebSocket) "undefined") { //您的浏览器不支持socket } else { // 关闭已有连接 if (this.socket) { try { thi 阅读全文
posted @ 2021-10-09 15:25 漂上岸的鱼 阅读(1404) 评论(0) 推荐(0)