Configuring probeType property item, that number, when the value is 0, do not listen for real-time scroll event, set to 2--3, you can monitor real-time scroll event
pullUpload option is set to false, will not turn on Raja upload function, threshold: 50, number of pixels on the pull
When dom structure changes, bs.refresh () method of the object instance
Why use refresh ()?
In the new better-scroll when instances calculate the height of the content minus the height of the wrapper, the value is the rolling range, when the content of elements increases, the scroll range unchanged, those newly added elements, it does not roll out what needs to be recalculated
scrollTo (x, y, long scroll, easing function)
listens on a custom event instance
bs.on('scroll',function(pos){
console.log (pos) // represents the scroll position
})
pullingUp on Raja upload call this method will only be triggered once
Raja load on time, you will not need to call a second load finshpullup () to tell bs data is loaded, you can load
Premise use pullingUp event is a property Pullupload configuration items to true
Examples of better-scroll, there is a property called scrollerHeight is his rolling range
Use better-scroll in the vue
Try not to be assigned to a variable bs instance, the hook function call is completed, that is, the destruction of this variable is assigned to a property in the data, that this object will become the property of the component
We in the options, you can set up better-scroll effect dynamic components that communicate through