jquery-deferred-images:加载所选图像后执行回调

时间:2021-06-26 05:57:26
【文件属性】:
文件名称:jquery-deferred-images:加载所选图像后执行回调
文件大小:11KB
文件格式:ZIP
更新时间:2021-06-26 05:57:26
JavaScript jQuery 延迟图像 加载所选图像后执行回调。 (请注意,这可能不适用于跨浏览器,请参阅: ://api.jquery.com/load-event/) 安装 手动或使用凉亭下载: $ bower install jquery-deferred-images 示例用法 $ ( 'img' ) . deferredImages ( { done : function ( ) { console . log ( 'all images has loaded succesfully' ) ; } , fail : function ( ) { console . log ( 'at least one image failed' ) ; } } ) ; 选项 完毕 类型: function 默认值:noop 成功加载所有图像后调用的函数 失败 类型:
【文件预览】:
jquery-deferred-images-master
----fixture.png(3KB)
----.gitignore(63B)
----demo.html(782B)
----test()
--------spec.js(565B)
--------index.html(857B)
----dest()
--------jQuery.deferredImages.js(794B)
--------jQuery.deferredImages.min.js(402B)
----.jshintrc(491B)
----Readme.md(887B)
----bower.json(503B)
----package.json(901B)
----src()
--------jQuery.deferredImages.js(794B)
----.travis.yml(108B)
----.editorconfig(226B)
----license(1KB)
----gulpfile.js(1014B)

网友评论