雖然改了scroll top,但是歷史回退的時候保持原有滾動個 if ('scrollRestoration' in history) { history.scrollRestoration = 'manual'; }