jq判断指定class下存在2个以上li
- if ( $('.testimonials ul').children().length > 1 ){
- $('.testimonials ul').bxSlider({
- auto: true,
- mode: 'fade'
- });
- }
发布于记忆碎片-网络技术分享 https://huilang.me
文章地址:https://huilang.me/isay/jq-pan-duan-zhi-ding-class-xia-cun-zai-2-ge-yi-shang-li/