摘要: 定义一个全局的socket类,放在util目录下 //定义一个socket类 class WebSocket { constructor(url) { this.url = url this.time=null; } //建立连接 connet() { let _this = this; uni.c 阅读全文
posted @ 2024-11-24 23:14 温柔的风 阅读(407) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示