diff --git a/public/js/sakura.js b/public/js/sakura.js index fff82221..c6853156 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