解决在VUE中绑定WebSocket事件无法传值的问题 this.webSocket.onerror =(env)=>{ this.onError(env) }; https://jsfiddle.net/dko6g9a4/1/