jQuery循环中继续选择某一项的子元素一般用find()方法
$(imgs).each(function (index, item) {
const currentLi = lis.eq(index);
currentLi.find('.title').text(item.title);
});
上一篇:jQuery如何写循环
下一篇:没有了!