From d42d3ece5734670e29378ade81f56c7601e82c09 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Thu, 24 Sep 2020 16:23:30 +0800
Subject: [PATCH] 天气与aqi查询接口更新
---
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