滚动条定位

    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; },

 

posted on 2018-09-15 17:38  Mike17  阅读(250)  评论(0编辑  收藏  举报

导航

搜狗