我如何创建一个函数,以便当主体阻止滚动时,模式窗口中的内容滚动到顶部? [英]How can I create a function so that the content in a modal window scrolls to top when body prevents scroll?