Excuse me, how does loopedSlides automatically get the total number of slide in Swiper?

when Swiper is used to do rowing pictures at work, but the total amount of rotated pictures is not fixed, so loopedSlides cannot write a fixed value.
so, how to make loopedSlides get the total number of slide automatically?
at present, I am using a stupid method (although I meet the requirements, but I always feel that it is not ideal) as follows:

loop: true;
slidesPerview: "auto";
loopedSlides:document.querySelectorAll(".swiper-slide");

Thank you for your answer, thank you very much!

Jan.23,2022

swiper.slides.length

document address: https://www.swiper.com.cn/api.


loopedSlides: document.querySelectorAll ('.swiper-slide'). Length

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e60f05-44c41.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e60f05-44c41.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?