Vue gets the scroll bar height is always 0

wants to make a small button back to the top, but now the scroll bar height is always 0
clipboard.png

clipboard.png

clipboard.png

.
Mar.22,2021

do not get the scrollTop, of body. The scrollTop,body of the div that is scrolled is usually fixed


var H = window.pageYOffset | | document.body.scrollTop | | document.body.scrollHeight; If (H) {console.log (H)} did you try


to solve the problem? I now have the same problem.


author this problem is solved, I have exactly the same problem now! I don't know what caused it!

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45aa6-44b50.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45aa6-44b50.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?