How to make the scroll, in better-scroll package back to the top.

how to make better-scroll encapsulated scroll, back to the top.

Mar.20,2021

method:
scrollTo (x, y, time, easing)
parameters:
{Number} x Abscissa coordinates (unit px)
{Number} y vertical axis coordinates (unit px)
{Number} time scrolling animation execution time (unit ms)
{Object} easing ease function. Generally, it is not recommended to modify it. If you want to modify it, refer to the ease.js in the source code

.

example:
this.scroll.scrollTo (0Magne0500)
/ / this.scroll is the instantiated BScroll object
/ / scrollTo () is the method
/ / (0meme0500) scrolls to the position at the top of the coordinate (0recover0) at a speed of 500ms.

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-1e549a8-43876.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-1e549a8-43876.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?