Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在一个 div 上调用 .hide 然后在另一个 div 上调用 .show 来替换最后一个时,页面会滚动到顶部。这些调用由计时器触发。知道如何防止页面滚动到顶部吗?