javascript - Is there a tool for loading many audio and image resources in vue? The preloadjs I originally used didn't seem to get along well with vue. . .
伊谢尔伦
伊谢尔伦 2017-06-12 09:22:24
0
1
594

Hope to be able to monitor the loading completion action of each file and the loading completion action of all files.

Or you can provide a solution, that is, how can I load resources without using tools? I have only used the following method, which feels a bit stupid:

var img = new Image();
img.src = 'xxx';
img.onload = function(){}
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
迷茫

Recommended to use Dropzone.js. Currently, one of our products needs to implement the upload preview function of pictures, videos, etc. I chose dropzone after looking at many plug-ins. Prepload is indeed a bit painful

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template