scrollBy( )


Scrolls the page by a given number of pixels.

について scrollBy() function returns a Promise that resolves when the current page has been scrolled by the given number of pixels,

について x そして y parameters determine the number of horizontal and vertical pixels to scroll the current page. Negative numbers scroll up or to the left and positive numbers scroll down or to the right.

メソッド宣言
コピー
メソッド・パラメータ
xnumberRequired

The horizontal offset, in pixels, to scroll by.


ynumberRequired

The vertical offset, in pixels, to scroll by.

役に立ちましたか?
はい
いいえ