问题:
I have a load of divs with the class testimonial
and I want to use jquery to loop through them to check for each div if a specific condition is true.我有很多带有类testimonial
的 div,我想使用 jquery 循环遍历它们以检查每个 div 是否满足特定条件。 If it is true, it should perform an action.如果是真的,它应该执行一个动作。
Does anyone know how I would do this?有谁知道我会怎么做?
解决方案:
参考一: https://en.stackoom.com/question/JrsU参考二: https://stackoom.com/question/JrsU