From 26ecb8c2932bf3b62005b81ea40fa071f67a1b79 Mon Sep 17 00:00:00 2001 From: xing Date: Fri, 10 Jul 2020 17:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tieba page.js b/tieba page.js index 503c033..4d5a24d 100644 --- a/tieba page.js +++ b/tieba page.js @@ -280,7 +280,7 @@ let tmp = lis.querySelectorAll('li'); let arr = [...tmp]; arr.splice(tmp.length - 1, 1); - if (page === 1 && el.length>0) { + if (page === 1 && el.length > 0) { arr.splice(0, 2); } arr.forEach(li => { @@ -297,7 +297,7 @@ let time = li.querySelector('.lzl_time').innerHTML; let h = li.querySelector('a[class="at j_user_card "]'); - let he = `${h.getAttribute('username')+(h.innerText!==h.getAttribute('username')?'('+h.innerText+')':'')}`; + let he = `${h.getAttribute('username') + (h.innerText !== h.getAttribute('username') ? '(' + h.innerText + ')' : '')}`; let re = li.querySelector('.lzl_content_main'); let rrr = re.querySelector('.at'); @@ -373,7 +373,7 @@ let that = this; if (num === orgnum) { let url = this.getAttribute('data-url'); - if(num<=8){ + if (num <= 8) { $.get(url, function (rst) { replayPage({data: {floor_html: rst}}, el, ls => { ls.splice(0, 2)