标签:outer classname top scroll this elements tom osi out
backTop() {
//回到顶部 let thisTOP = document.getElementsByClassName("router"); thisTOP[0].scrollTop = 0; }, replyToBottom(){
//回到底部 let thisTOP = document.getElementsByClassName("router"); var bottomPosition = thisTOP[0].scrollHeight; thisTOP[0].scrollTop = bottomPosition; },
标签:outer classname top scroll this elements tom osi out
原文地址:https://www.cnblogs.com/cx709452428/p/9651574.html