虽然改了scroll top,但是历史回退的时候保持原有滚动个 if ('scrollRestoration' in history) { history.scrollRestoration = 'manual'; }