Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在启动后修改 swiperjs 中每个视图的幻灯片数量。在 API 中,我找不到任何允许我更新它的方法。目前,刷卡器的每个视图创建 1 张幻灯片,我想在启动后将其更改为每个视图 3 张。
我怎样才能做到这一点?
通过修改参数解决了它。
let params = swiperModify.params; params.slidesPerView = 3; params.slidesPerColumn = 3;
出于某种原因,起初我正在寻找一种处理新参数的方法(设置方法)..但这很好用。如果那不是最佳实践,我想知道:)