Mini Program, picture preloading problem!

= > pull-down bottoming event on the page
= > handle waterfall stream effect function (image preload function callback is required to perform picture output)
= > picture preload function

now I don"t know how to determine the completion of loading and adding callback
in the picture preload function , because in WeChat Mini Programs, the picture loading is completed with bindload event
of the Image component bindload event
if there are 5 pictures, how to add the callback after loading 5 pictures in the callback of bindload event Synchronize to picture preload function so that it can judge and add callback?


Mini Program does not have the watch function of vue. Although there is a tutorial on Mini Program on the Internet, it is still quite troublesome and I don't know if it is easy to use. The simpler one is:
1. Set up a container, a number, or an array.
2. Add the same function PP or push to each bindload event.
3. Write a timer to the preloading function, get the container in a loop, execute it after reaching the expected value, and then clear the timer


https://github.com/jayZOU/wxa.

try this?

Menu