V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xujiahui  ›  全部回复第 4 页 / 共 16 页
回复总数  301
1  2  3  4  5  6  7  8  9  10 ... 16  
vim
2023-11-30 09:30:39 +08:00
回复了 tlerbao 创建的主题 程序员 用过 VueUse 中 useWebSocket 的前端小哥麻烦丢点代码示例
export interface UseWebSocketReturn<T> {
/**
* Reference to the latest data received via the websocket,
* can be watched to respond to incoming messages
*/
data: Ref<T | null>

/**
* The current websocket status, can be only one of:
* 'OPEN', 'CONNECTING', 'CLOSED'
*/
status: Ref<WebSocketStatus>

/**
* Closes the websocket connection gracefully.
*/
close: WebSocket['close']

/**
* Reopen the websocket connection.
* If there the current one is active, will close it before opening a new one.
*/
open: Fn

/**
* Sends data through the websocket connection.
*
* @param data
* @param useBuffer when the socket is not yet open, store the data into the buffer and sent them one connected. Default to true.
*/
send: (data: string | ArrayBuffer | Blob, useBuffer?: boolean) => boolean

/**
* Reference to the WebSocket instance.
*/
ws: Ref<WebSocket | undefined>
}
2023-11-30 09:25:47 +08:00
回复了 tlerbao 创建的主题 程序员 用过 VueUse 中 useWebSocket 的前端小哥麻烦丢点代码示例
文档不是写的挺清楚吗
2023-11-15 10:54:06 +08:00
回复了 yujianwjj 创建的主题 git git 临时切换分支
git stash
2023-11-13 09:34:28 +08:00
回复了 shixiaoda 创建的主题 Apple Quantumult X 有啥好使的去广告 Config?
求推荐 shadowrocket 的规则
2023-11-09 14:00:51 +08:00
回复了 token10086 创建的主题 程序员 求求你们都别卷工具站了
之前 vue3 ts 练手做了一个,https://jawilx.github.io/jtools/
2023-11-08 15:08:39 +08:00
回复了 Sylarlong 创建的主题 分享创造 紫微斗数 | 对算命有兴趣的程序员请进
牛,不知道紫微斗数怎么入门
2023-11-08 09:50:19 +08:00
回复了 stardustree 创建的主题 生活 哎,早产的娃严重脑出血,要放弃治疗了...
节哀
2023-10-10 14:47:42 +08:00
回复了 rivercherdeeeeee 创建的主题 骑行 公路车求推荐
这个价位的美利达性价比最高,但是买不到
2023-10-05 18:11:40 +08:00
回复了 582217 创建的主题 问与答 求推荐高质量的梯
@Cu635 #151 imgur 还真打不开,不知道为啥,github push 最近用的少,clone 项目时没啥问题
2023-09-07 11:36:08 +08:00
回复了 fire1980 创建的主题 VPS 求推荐便宜的 vps
aHR0cHM6Ly93d3cubW9qaWUubWUvIy9yZWdpc3Rlcj9jb2RlPWVoUjNBTTgx

一直在用的机场,感觉性价比很高,不同国家的节点很多,不限设备,不限时间,一般 10 几块买个 100 多 G 流量能用很久
2023-08-22 09:30:33 +08:00
回复了 jack274 创建的主题 随想 小儿感冒发烧,是不是过度医疗了
建议找个好的中医试试
2023-08-16 09:32:24 +08:00
回复了 ThinkStu 创建的主题 京东 我说我怎么经常接到「京东」的「骚扰电话」😅
多谢提醒,已关闭
2023-08-02 09:08:36 +08:00
回复了 ghmum 创建的主题 随想 对一个 30 岁即将离婚的人,前辈有什么建议?
能够轻松很多,过好自己,身心健康就行
2023-07-28 09:02:48 +08:00
回复了 EyebrowsWhite 创建的主题 推广 [抽奖] 评论送两台 OneKey Mini
不明觉历
2023-07-21 09:03:43 +08:00
回复了 Flourite 创建的主题 Visual Studio Code vscode 为什么用久了会变卡?
@DTCPSS #16 我也在用,经常一直加载然后卡的飞起
1  2  3  4  5  6  7  8  9  10 ... 16  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   981 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 42ms · UTC 18:54 · PVG 02:54 · LAX 10:54 · JFK 13:54
Developed with CodeLauncher
♥ Do have faith in what you're doing.