huangxiaojing 4 年之前
父節點
當前提交
0569c2722f
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 2
      screenAndroid/WXdraw.js
  2. 2 0
      screenAndroid/WXtrialInterface.html

+ 2 - 2
screenAndroid/WXdraw.js

@@ -54,7 +54,7 @@ function doConnect() {
 		wsss.send(ExexuteMove(JSON.stringify(bitRate), form.sn))
 	};
 	wsss.onclose = function (evt) {
-		console.log(evt.data);
+		console.log(evt);
 		$.confirm({
 			title: '提示',
 			text: '连接断开,是否准备重连?',
@@ -69,7 +69,7 @@ function doConnect() {
 		});
 	};
 	wsss.onerror = function (evt) {
-		console.log(evt.data);
+		console.log(evt);
 		$.confirm({
 			title: '提示',
 			text: '连接断开,是否准备重连?',

+ 2 - 0
screenAndroid/WXtrialInterface.html

@@ -229,6 +229,7 @@
 			ws.binaryType = 'arraybuffer';
 
 			ws.onclose = function (e) {
+				console.log(e);
 				$.confirm({
 					title: '提示',
 					text: '连接断开,是否准备重连?',
@@ -248,6 +249,7 @@
 			});
 
 			ws.addEventListener('error', function (event) {
+				console.log(event);
 				$.confirm({
 					title: '提示',
 					text: '连接失败,是否准备重连?',