Skip to content

Function: scrollToRight()

ts
function scrollToRight(scroll: HTMLElement): void

将可滚动元素滚动到最右侧

Example

ts
scrollToRight(dom: HTMLElement);

Parameters

ParameterTypeDescription

scroll

HTMLElement

要滚动的元素

Returns

void