From 74118a5447d2c5a492ec1662d27be2c5ea003e95 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Sat, 27 Feb 2016 19:55:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E7=BC=96=E7=A0=81=E7=9A=84hash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/ditto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ditto.js b/js/ditto.js index 8ff1dd5..1841abe 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -329,7 +329,7 @@ function router() { if (sectionId) { $('html, body').animate({ - scrollTop: ($('#' + sectionId).offset().top) + scrollTop: ($('#' + decodeURI(sectionId)).offset().top) }, 300); } else { if (location.hash !== '' || Boolean(perc)) {