📅  最后修改于: 2022-03-11 14:58:37.851000             🧑  作者: Mango
function App() {
const myRef = createRef()
function scroll(ref) {
ref.current.scrollIntoView({ behavior: 'smooth' })
}
return (
Content...
.....
.....
)
}