search

Home  >  Q&A  >  body text

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. . .

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(){}
伊谢尔伦伊谢尔伦2721 days ago595

reply all(1)I'll reply

  • 迷茫

    迷茫2017-06-12 09:24:24

    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

    reply
    0
  • Cancelreply