From a73731cdb60b75abee9eb7dd5fce93ca55a164c6 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期一, 27 十一月 2023 15:13:59 +0800 Subject: [PATCH] # --- src/main/webapp/views/realtimeWatch/console.html | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/views/realtimeWatch/console.html b/src/main/webapp/views/realtimeWatch/console.html index b97dcba..ebca8ce 100644 --- a/src/main/webapp/views/realtimeWatch/console.html +++ b/src/main/webapp/views/realtimeWatch/console.html @@ -401,7 +401,8 @@ </script> <script type="text/javascript"> // 寮圭獥绔欑偣淇℃伅 - $('.site').on('click', function () { + $("body").on('click', '.site', function (e) { + console.log(e) var id = this.id.split("-")[1]; $("#siteWindow").attr("style", "display:block;");//鏄剧ずdiv $("#crnWindow").attr("style", "display:none;"); @@ -431,7 +432,7 @@ }); // 鍫嗗灈鏈轰俊鎭� - $('.machine').on('click', function () { + $("body").on('click', '.machine', function () { var id = this.id.split("-")[1]; $("#crnWindow").attr('style', 'display:block;'); $("#siteWindow").attr("style", "display:none;"); @@ -459,7 +460,7 @@ }) - }) + }); // 寮圭獥鍏抽棴 $('button').on('click', function () { $('#siteWindow').attr('style', 'display:none') -- Gitblit v1.9.1