alanhe421 / coding-note

note
3 stars 1 forks source link

返回顶部实现 #72

Open alanhe421 opened 6 years ago

alanhe421 commented 6 years ago

返回顶部

document.documentElement.scrollTop = 0;
alanhe421 commented 6 years ago

返回底部

document.documentElement.scrollTop=document.body.clientHeight;