Skip to content

wunci/lazyLoad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazyLoad Img

预览

定义规则

cls(可选)   src(可选)   initImg(可选)
.lazyLoad data-src   占位图
<img class="lazyLoad" data-src="需要加载的图片" alt="">

wclimb.lazyLoad()
		or
wclimb.lazyLoad({
	cls:'.lazyLoad',
	src:'data-src',
	initImg:'http://www.wclimb.site/images/imgLoading.svg'
})