# loadImage.js **Repository Path**: bulletyuan/loadImage.js ## Basic Information - **Project Name**: loadImage.js - **Description**: loadImage.js---该组件用于全局预加载图片或图片集。可定义加载延迟时间,加载成功事件,加载失败事件,等待事件,加载中事件,加载失败图片地址,加载中占位图片地址 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-08-16 - **Last Updated**: 2021-10-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README /** Author:BulletYuan UpdateTime:2017.8.16 Version:1.1.1 该组件用于全局预加载图片或图片集 可定义加载延迟时间,加载成功事件,加载失败事件,等待事件,加载中事件,加载失败图片地址,加载中占位图片地址 用法1: loadImage([ "pic1.jpg","pic2.jpg","pic3.jpg",... ]).load({ timeout 加载延迟时间 success 加载成功事件 error 加载失败事件 waitting 等待事件 loading 加载中事件 failImgurl 加载失败图片地址 loadingImgurl 加载中占位图片地址 }) 用法2: loadImage("pic1.jpg").load({ timeout 加载延迟时间 success 加载成功事件 error 加载失败事件 waitting 等待事件 loading 加载中事件 failImgurl 加载失败图片地址 loadingImgurl 加载中占位图片地址 }) 用法3: var l=loadImage("pic1.jpg"); l.load({ timeout 加载延迟时间 success 加载成功事件 error 加载失败事件 waitting 等待事件 loading 加载中事件 failImgurl 加载失败图片地址 loadingImgurl 加载中占位图片地址 }) **/