H5 is refreshed from the public account drop-down list
Because the project needs to be related to "Health Information" on the public account, a pull-down refresh will be used, but the native H5 is used as the page, however, I hope to achieve the same pull-down refresh effect as the app native. Then I found H5 pull-down refresh related information on the Internet, including Iscroll, MUI, and Hook. js, dragloader, and so on, they claim that they can solve the pull-down refresh problem, but after I view the specific official documentation and examples, I chose Iscroll as the pull-down refresh implementation, because other technologies either do not write well, or there are too few examples, but there are many iscroll examples.
Below is what I pulled out the pull-down and refresh modules from the project and shared the implementation results.
The specific implementation code is as follows: the Page List displays the json array returned by the background, and then traverses the json array to add the list through js. After each refresh, click "next page". The Code is as follows:
<! DOCTYPE html>