【发布时间】:2023-03-20 14:18:01
【问题描述】:
我在所有带有课程视频的 div 上运行 each 函数。在此期间,我将带有图像的标签附加到 DOM。
然后我想检查是否使用此插件加载了所有图像:https://gist.github.com/268257
但是,选择器没有选择附加在每个函数中的图像。
关于如何选择所有图像的任何想法,包括每个功能添加的图像?
$('.video').each(function() {
//load in images using json and append them with an <img> tag
});
$('#posts .video').find('img').imagesLoaded(function(){
// do stuff after all images have loaded
});
【问题讨论】:
标签: jquery json jquery-selectors bind live