From b9b70ce7294040ac2c1034a8b48afb253a517061 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 18 Mar 2022 17:22:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/search.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/home/search.js b/public/home/search.js index 9f823c73d..ac7e201b2 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -692,10 +692,10 @@ function page(current){ function goPage(){ - var inputpage = document.getElementById("inputpage") + var inputpage = document.getElementById("inputpage_div") var left = inputpage.offsetLeft; var top = inputpage.offsetTop; - var goNum = inputpage.value; + var goNum = $('#inputpage').val(); if (goNum<=0){ showTip("请输入大于0的数值。","warning",left+5,top); } @@ -710,8 +710,8 @@ function page(current){ function showTip(tip, type,left,top) { var $tip = $('#tipmsg'); var tipmsg = document.getElementById("tipmsg") - console.log("left:" + left + ";top:" + top + ";position:relative") - tipmsg.style = "left:" + left + ";top:" + top + ";position:relative"; + console.log("top:" + top + "px;left:" + left + "px;position:relative") + tipmsg.style = "top:" + top + "px;left:" + left + "px;position:relative" $tip.stop(true).prop('class', 'alert alert-' + type).html(tip).fadeIn(500).delay(2000).fadeOut(500); } @@ -753,7 +753,7 @@ function page(current){ html += "末页"; } - html +="
前往
"; + html +="
前往
"; console.log("html=" + html) document.getElementById("page_menu").innerHTML=html; $('#inputpage').on('keypress',function(event){