Skip to content

Function: scrollToLeft()

ts
function scrollToLeft(scroll: HTMLElement): void

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

Example

ts
scrollToLeft(dom: HTMLElement);

Parameters

ParameterTypeDescription

scroll

HTMLElement

要滚动的元素

Returns

void