diff --git a/script.js b/script.js index 8e9e968..1fc3ffc 100644 --- a/script.js +++ b/script.js @@ -36,10 +36,10 @@ $(document).ready(function() { $(".tab").find(".addTab").before(newTabButton); $("body").append(newTabContent); // 绑定新添加的选项卡按钮和删除按钮的事件 - // $(".tabcontent").hide(); - // $("#" + newTabId).show(); - // $(".tablinks").removeClass("active"); - // $(`.tablinks[data-tab="${newTabId}"]`).addClass("active"); + $(".tabcontent").hide(); + $("#" + newTabId).show(); + $(".tablinks").removeClass("active"); + $(`.tablinks[data-tab="${newTabId}"]`).addClass("active"); bindTabEvents(); updateContentOpacity(slider.val()); });