Skip to content

用于Html5预加载图片资源插件,具备加载进度功能

Notifications You must be signed in to change notification settings

lidianhao123/loadImages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

loadImages

用于Html5预加载图片资源插件,具备加载进度功能

 * @description loadImages can preload images and after each image load completed can callback process
 * @param  {object} options - past setting parameters
 * @param  {string[]} options.data - images url array
 * @callback options.step - each step callback function
 *          @param {number} - process number
 * @callback options.complete - all images are loaded
 * @param {boolean} needOneStep - increase by 1 each time
 * @param {string} path - images data string common path
 * @return {boolean}
 * @example
 * loadImages({
 *      data:["1.png", "2.png", "3.png"],
 *      step:function(num){},
 *      compelte: function(){},
 *      needOneStep: true,
 *      path:"/images"
 * });

http://lidianhao123.github.io/loadImages/index.html

About

用于Html5预加载图片资源插件,具备加载进度功能

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published