scrollBy Method :Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offsetwindow.scrollBy(iX, iY)
------------------------------------------------------------------
scrollTo Method: Scrolls the window to the specified x- and y-offsetwindow.scrollTo(iX, iY)--------------------------------------------------------------------
scroll Method Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window. window.scroll(iX, iY)
------------------------------------------------------------------
scrollTo Method: Scrolls the window to the specified x- and y-offsetwindow.scrollTo(iX, iY)--------------------------------------------------------------------
scroll Method Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window. window.scroll(iX, iY)
2、Window.ScrollBy()方法采用文档的相对位移。是Window.Scroll()方法的新版本。
Window.ScrollBy(0,window,innerHeight)
3、Window.ScrollTo()与Window.Scroll()方法没有太大的区别。