From 4dad2c9b7bd8b6a37b7ced141be1245eabc899c1 Mon Sep 17 00:00:00 2001 From: 于紫祥_1901 <email@yuzixiang_1910> Date: Mon, 21 Sep 2020 17:26:00 +0800 Subject: [PATCH] 传感器均值接口更新 --- src/main/webapp/view/newmap.jsp | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp index c2e63d8..d411bc4 100644 --- a/src/main/webapp/view/newmap.jsp +++ b/src/main/webapp/view/newmap.jsp @@ -709,11 +709,11 @@ /* if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") { moralMap.showSensors(JSON.parse(JSON.parse(msg.data))); }*/ + if ($("#close").html() == "CloseMq") { + ws.close(); + } }; - if ($("#close").html()=="CloseMq") { - ws.close(); - } //������������ ws.onclose = function () { $("#close").html("websocket������������"); @@ -843,10 +843,8 @@ $("#close").html(methodName); moralMap.showSensors(jsonData); } else if ("CloseMq" == methodName) { - //window.location = "http://www.baidu.com" $("#close").html(methodName); } } - </script> -- Gitblit v1.8.0