Mui integrated pull-up and pull-down writing
In the process of APP production, pull-down refresh and pull-up load are always used together. We shared with you the pull-up load and down refresh related to JS before. Interested friends can refer to: Mui carries out app hybrid development to realize pull-down refresh and pull-up load
Let's first look at how to use integrated pull-up and pull-down in Mui
The first and second steps are the same as pull-down refresh
Step 3: set both pull-up load and pull-down refresh in Mui. Init()
Note: the onclick click event cannot be added to the obtained element, but the addeventlistener custom event needs to be added
If you don't understand this integration, you can first learn how to separate pull-up loading and pull-down refresh. Please read:
Simple implementation of JavaScript pull-down refresh
Pure JavaScript to achieve a simple drop-down refresh function