springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-18 13:15:27
140
尝试在<figure>
与类.woocommerce-product-gallery__wrapper
有另一个类-.test
类是通过另一个JavaScript按钮放在那里的,该按钮用于切换类的输入和输出。所以这个事件需要继续倾听。
.test
我觉得这是一件超级简单的事情,作为一个JS新手,我正在做一些超级愚蠢的事情/错过了一些东西。
顺晟科技:
考虑以下.
if(document.querySelector('.woocommerce-product-gallery__wrapper').classList.contains('test')){
console.log('Hello');
};
这将选择两个类(if($(".woocommerce-product-gallery__wrapper.test" ).length > 0){
console.log('Found Test Element');
}
和woocommerce-product-gallery__wrapper
)的所有元素。
你也可以这样做。
woocommerce-product-gallery__wrapper
这将使用类if($(".woocommerce-product-gallery__wrapper.test" ).length > 0){
console.log('Found Test Element');
}
迭代每个元素,并检查它是否具有woocommerce-product-gallery__wrapper
类。当您只想对这些元素执行操作时,这很有帮助。
您还可以像这样使用test
。
.filter()
有很多方法可以找到特定的元素。
尝试:
if($( ".woocommerce-product-gallery__wrapper" ).hasClass( "test" )){
console.log('Hello');
// I have the 'hidden' class
};
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11