If multiple calls are required, in order to avoid interference during execution, you can modify the code Method 1: Give each a tag a new id, and delete the a tag according to the id Method 2: Use the setTimeout function to delay execution (not necessarily safe ) Method 3: After the first execution ends, call the method in the callback function to download the next picture
The requested network image may not be able to be intercepted, please contact me if you have a solution, the current solution is to directly put the background image in the static directory