- 博客(2)
- 收藏
- 关注
原创 uni-app中WebSocket的封装及使用
common/js/webSocket.js import Vue from 'vue'; const _this = Vue.prototype; let socketOpen = false; //判断是否连上 let lockReconnect = false;//避免重复连接 let tips = 1; //1成功 2 失败 let timer = ''; function sokcet(url,sucessCallBack){ uni.closeSocket(); socketOpen
2021-07-13 14:01:13
1647
原创 uni-app中WebSocket的使用
<template> <view class="wrap"> <view class="content"> //数据展示 </view> <button @click="sendMsg">提交数据</button> </view> </template> <script> export default { components:{ }, dat.
2021-07-08 14:53:03
2354
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人