From aabe580c59b26a00146cd4e4e11c627d73abccee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E7=93=9C=E4=BA=91?= Date: Mon, 31 Jul 2023 14:24:42 +0800 Subject: [PATCH] =?UTF-8?q?attachEvent=E6=8A=A5=E9=94=99=EF=BC=8C=E5=8F=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8onload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- post_example.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/post_example.html b/post_example.html index 7af480c..0020351 100644 --- a/post_example.html +++ b/post_example.html @@ -149,12 +149,7 @@ function openComments(){ while(utterancesLoad==0){ utterancesFrame=document.getElementsByClassName("utterances-frame")[0]; - if (utterancesFrame.attachEvent){ - utterancesFrame.attachEvent("onload", function(){utterancesLoad=1;}); - } - else { - utterancesFrame.onload = function(){utterancesLoad=1;}; - } + utterancesFrame.onload = function(){utterancesLoad=1;}; } cmButton.style.display="none"; cm.style.display="block";