From c476e03205029771446bf723c71ccf9f04f0ef10 Mon Sep 17 00:00:00 2001 From: kaiyu <404897439@qq.com> Date: Fri, 25 Sep 2020 16:52:48 +0800 Subject: [PATCH] BS获取风向以及站点信息Webscoket接口 --- src/main/webapp/view/newmap.jsp | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp index 395d3fb..d411bc4 100644 --- a/src/main/webapp/view/newmap.jsp +++ b/src/main/webapp/view/newmap.jsp @@ -367,7 +367,7 @@ <body> <div> </div> -<%--<textarea id="close" hidden></textarea>--%> +<textarea id="close" hidden></textarea> <div class="main_body"> <%--<input id="button" type="button" value="������" onclick="getJs();">--%> @@ -709,18 +709,18 @@ /* if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") { moralMap.showSensors(JSON.parse(JSON.parse(msg.data))); }*/ - /*if ($("#close").html() == "CloseMq") { + if ($("#close").html() == "CloseMq") { ws.close(); - }*/ + } }; //������������ ws.onclose = function () { - //$("#close").html("websocket������������"); + $("#close").html("websocket������������"); }; //��������������������� ws.onerror = function () { - //$("#close").html("websocket������������"); + $("#close").html("websocket������������"); }; } @@ -842,9 +842,9 @@ } else if ("DeliverSensors" == methodName) { $("#close").html(methodName); moralMap.showSensors(jsonData); - } /*else if ("CloseMq" == methodName) { + } else if ("CloseMq" == methodName) { $("#close").html(methodName); - }*/ + } } </script> -- Gitblit v1.8.0