From 69e1029ce5229a00af2430df521a57a0c59fe728 Mon Sep 17 00:00:00 2001 From: lcg0124 <1992lcg@163.com> Date: Mon, 19 Nov 2018 22:19:52 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=8A=A0=E5=85=A5tab=E9=A1=B5=E9=87=8C?= =?UTF-8?q?=E6=89=93=E5=BC=80=E6=96=B0tab=E9=A1=B5=E7=9A=84demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootdo/src/main/resources/static/js/openTab.js | 12 ++++++++++++ bootdo/src/main/resources/templates/main.html | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 bootdo/src/main/resources/static/js/openTab.js diff --git a/bootdo/src/main/resources/static/js/openTab.js b/bootdo/src/main/resources/static/js/openTab.js new file mode 100644 index 0000000..3390a5e --- /dev/null +++ b/bootdo/src/main/resources/static/js/openTab.js @@ -0,0 +1,12 @@ +function openPage(url,title) { + var nav = $(window.parent.document).find('.J_menuTabs .page-tabs-content '); + $(window.parent.document).find('.J_menuTabs .page-tabs-content ').find(".J_menuTab.active").removeClass("active"); + $(window.parent.document).find('.J_mainContent').find("iframe").css("display", "none"); + var iframe = ''; + $(window.parent.document).find('.J_menuTabs .page-tabs-content ').append( + ' ' + title + ' '); + $(window.parent.document).find('.J_mainContent').append(iframe); + console.log('--success--') +} +//$('.openPage').on('click', openPage('','')); \ No newline at end of file diff --git a/bootdo/src/main/resources/templates/main.html b/bootdo/src/main/resources/templates/main.html index 3a89d85..2e7ac04 100644 --- a/bootdo/src/main/resources/templates/main.html +++ b/bootdo/src/main/resources/templates/main.html @@ -30,7 +30,11 @@
  • 点击链接加入群【BootDo交流群】:669039323(满)
  • 点击链接加入群聊【BootDo交流二群】:614726589
  • + + + + \ No newline at end of file -- Gitee