src/main/webapp/view/newmap.jsp
@@ -712,6 +712,7 @@ if ($("#close").html() == "CloseMq") { ws.close(); } moralMap.showSensors(JSON.parse(JSON.parse(msg.data))); }; //关闭事件 @@ -722,7 +723,6 @@ ws.onerror = function () { $("#close").html("websocket关闭错误"); }; } })(jQuery); @@ -839,9 +839,6 @@ } else if ("RefreshState" == methodName) { var states = jsonData.states; moralMap.refreshState(states); } else if ("DeliverSensors" == methodName) { $("#close").html(methodName); moralMap.showSensors(jsonData); } else if ("CloseMq" == methodName) { $("#close").html(methodName); }