1. scrollTo
scrollTo() 方法可把内容滚动到指定的坐标。
语法:
scrollTo(xpos,ypos)
scrollTo0() { let bodyWrapper = document.getElementsByClassName( "el-table__body-wrapper" ); if (bodyWrapper && bodyWrapper.length > 0) { for (let item of bodyWrapper) { item.scrollTo(0, 0); } } document.getElementsByClassName("loopControlCon")[0].scrollTo(0, 0); },