From 038cad8f054bf89444dd1ede0aaa98fe34d43ca0 Mon Sep 17 00:00:00 2001 From: lyt Date: Tue, 8 Oct 2019 14:32:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=A9=E6=B0=94js=E7=9A=84=E5=9F=8E?= =?UTF-8?q?=E5=B8=82id=E9=80=9A=E8=BF=87url=E5=8F=82=E6=95=B0=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E5=9C=A8=E5=90=88=E5=B9=B6JS=E5=90=8E=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/weather/city-index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/weather/city-index.js b/js/weather/city-index.js index 2b363ce..5883457 100644 --- a/js/weather/city-index.js +++ b/js/weather/city-index.js @@ -14,7 +14,7 @@ const this_url = document.currentScript.src; $(document).ready(function () { var parsedUrl = new URL(this_url); var cid = (parsedUrl.searchParams.get("cid")); - cid = cid ? cid : document..getElementById('cid').value; + cid = cid ? cid : document.getElementById('cid').value; $.get("https://api.openweathermap.org/data/2.5/weather?id=" + cid + "&appid=d79a45c23a77a304b8fd2cca3590b89d&units=metric", function (data, status) { var cityName = document.getElementById('location'); cityName.innerHTML = data.name;