From f6238e7cc8adecb388e88a9270e30d55c7eca31c Mon Sep 17 00:00:00 2001 From: wzblog Date: Fri, 9 Apr 2021 13:04:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E5=90=8E=E8=B7=B3=E8=BD=AC=E5=88=B0=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 8a2c814..1ec6149 100644 --- a/index.html +++ b/index.html @@ -172,6 +172,15 @@

我来“帮你”进行搜索

// 显示结果 $('#resultArea').removeClass('invisible'); + // 获取结果区域位置 + var resultAreaOffset = $('#resultArea').offset(); + + // 跳转到结果区域 + scrollTo({ + top: resultAreaOffset.top, + behavior: "smooth" + }); + // 取消默认操作 return false; });