huangxiaojing 4 년 전
부모
커밋
b80f80913d
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      screenAndroid/WXdraw.js

+ 4 - 2
screenAndroid/WXdraw.js

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