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.
我有麻烦。我想动态地将我的刷卡器模式从“水平”更改为“垂直”(例如按下按钮时)。但我不知道该怎么做!我尝试使用topSwiper.param('mode', 'vertical')并topSwiper.params.mode = 'vertical'喜欢它在 API 中所说的,但它不起作用。也许有人对如何解决它有想法?
topSwiper.param('mode', 'vertical')
topSwiper.params.mode = 'vertical'
我让它变得简单 - 只需在使用新选项topSwiper.destroy()初始化 new 之前制作。topSwiper
topSwiper.destroy()
topSwiper