From d7242359e2b6e8a7335a4130c0ee1fcc800bbeea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Wed, 18 Mar 2020 19:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E5=BC=80=E5=A7=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=8D=E6=96=B9=E4=BE=BF=E7=A1=AE=E5=AE=9A=E7=9A=84?= =?UTF-8?q?className=E5=88=B0data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index b97acfab..29fead47 100644 --- a/script.js +++ b/script.js @@ -633,7 +633,7 @@ function initialize() const linkRes = new RegExp(linkReg,"ig").exec(m.specialAttribute); if (linkRes) {//每个有链接的符卡,把它们被链接的符卡的进化根修改到链接前的 - let _m = Cards[parseInt(linkRes[1],10)]; + const _m = Cards[parseInt(linkRes[1],10)]; _m.evoRootId = m.evoRootId; } }); @@ -682,6 +682,7 @@ function initialize() txtDetail.focus(); }; + //这个写法的目的其实是为了确保添加顺序与1、2、3一致,即便打乱了顺序,也能正确添加 for (let ti=0,ti_len=formationBox.querySelectorAll(".team-bigbox").length;ti