From b938a6113529714e1582cf09b21a2d02988c4ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 3 May 2024 21:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=B8=80=E5=BC=A0?= =?UTF-8?q?=E5=92=8C=E4=B8=8B=E4=B8=80=E5=BC=A0=E7=9A=84=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p/index.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/p/index.html b/p/index.html index 83abc46..19f949f 100644 --- a/p/index.html +++ b/p/index.html @@ -18,6 +18,10 @@ 0 +
+ + +
@@ -76,6 +80,26 @@ pid.focus(); pid.selectionStart = pid.selectionEnd = pid.value.length; }); + // 上一张 + document.getElementById("prev").onclick = function () { + if (pid.value === '') { + pid.focus(); + pid.selectionStart = pid.selectionEnd = pid.value.length; + return; + } + pid.value = pid.value - 1; + enter(); + }; + // 下一张 + document.getElementById("next").onclick = function () { + if (pid.value === '') { + pid.focus(); + pid.selectionStart = pid.selectionEnd = pid.value.length; + return; + } + pid.value = pid.value - 0 + 1; + enter(); + }; function clearPid () { if (pid.value !== '') {