- 博客(2)
- 收藏
- 关注
原创 uni-app中WebSocket的封装及使用
common/js/webSocket.jsimport 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
1611
原创 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
2299
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人