1. 程式人生 > >滾動條定位

滾動條定位

bsp scrollto code position outer ack reply 底部 clas

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

滾動條定位