我在做项目的时候遇到了一个bug在network选项卡可以查看收到的信息,但是console.log没有打印到控制台上
console.log的位置可能写的不对,写到消息接收的函数中
输出写到 websocket.onmessage = function (event) {里