From ec14f305cbfc5e342fd4d39bb752dcae76b5e537 Mon Sep 17 00:00:00 2001 From: cxykevin Date: Mon, 16 Sep 2024 18:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dalert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page.html b/src/page.html index bc592e5..db20964 100644 --- a/src/page.html +++ b/src/page.html @@ -227,7 +227,7 @@ } function send_msg() { if (document.getElementById("input-card").value.length < 10) { - window.parent.alert("评论内容不能少于10个字") + alert("评论内容不能少于10个字") return } if (logined == 0) { @@ -243,7 +243,7 @@ if (xhr.readyState == 4 && xhr.status == 200) { var obj = JSON.parse(xhr.responseText); if (obj.code == 1) { - window.parent.alert(obj.msg) + alert(obj.msg) document.getElementsByClassName("send-btn")[0].removeAttribute("loading") return }