From 5e2fcd656a950f815f31b031335a048fd90b3487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Sat, 9 Jul 2022 11:00:45 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20=E5=A4=A9=E6=B0=94=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/main.js b/js/main.js index 1adf448..85c5ca3 100644 --- a/js/main.js +++ b/js/main.js @@ -186,11 +186,11 @@ function getWeather() { getWeather(); $('#upWeather').click(function () { - if (times == 0) { - times = 1; + if (wea == 0) { + wea = 1; var index = setInterval(function () { - times--; - if (times == 0) { + wea--; + if (wea == 0) { clearInterval(index); } }, 60000);