From aa3210553d4322231d3e6571ff5789cdeadaa768 Mon Sep 17 00:00:00 2001 From: Vixcity <2091283625@qq.com> Date: Mon, 6 May 2024 22:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8window=E4=B8=8A=E6=8C=82=E8=BD=BD?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=92=8C=E9=94=80=E6=AF=81=E6=A8=B1=E8=8A=B1?= =?UTF-8?q?=E9=9B=A8=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/sakura.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/sakura.js b/public/js/sakura.js index fff8222187f..c6853156469 100644 --- a/public/js/sakura.js +++ b/public/js/sakura.js @@ -174,9 +174,13 @@ function createSakura() { } } +// 销毁樱花雨 function destroySakura() { const sakura = document.getElementById(id) if (sakura && sakura.parentNode) { sakura.parentNode.removeChild(sakura) } } + +window.createSakura = createSakura +window.destroySakura = destroySakura \ No newline at end of file