scrollIntoView 並不隸屬於Window,反而是Element 的method,而執行 scrollIntoView 的就會是需要進入視窗中的目標元素。 const element = document.getElementById("box") ...
確定! 回上一頁