Commit 9fdde34c by libai

测试

parent 4a546331
...@@ -538,6 +538,8 @@ ...@@ -538,6 +538,8 @@
ws.onclose = function(event) ws.onclose = function(event)
{ {
state("连接断开"); state("连接断开");
$("#guestid").val('');
tips("连接已断开","error",3000);
console.error("WebSocket close observed:", event); console.error("WebSocket close observed:", event);
}; };
ws.onerror = function(event) ws.onerror = function(event)
......
...@@ -538,6 +538,8 @@ ...@@ -538,6 +538,8 @@
ws.onclose = function(event) ws.onclose = function(event)
{ {
state("连接断开"); state("连接断开");
$("#guestid").val('');
tips("连接已断开","error",3000);
console.error("WebSocket close observed:", event); console.error("WebSocket close observed:", event);
}; };
ws.onerror = function(event) ws.onerror = function(event)
......
...@@ -539,6 +539,8 @@ ...@@ -539,6 +539,8 @@
ws.onclose = function(event) ws.onclose = function(event)
{ {
state("连接断开"); state("连接断开");
$("#guestid").val('');
tips("连接已断开","error",3000);
console.error("WebSocket close observed:", event); console.error("WebSocket close observed:", event);
}; };
ws.onerror = function(event) ws.onerror = function(event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment