在 Swiper 中删除字幕

Removing captions in Swiper

在我的 Swiper 中的图像下方显示 'undefined'。

这在 <figcaption> 标签内

我该如何摆脱它?我不想在我的滑动器中添加任何字幕。

Swiper is not adding the figcaption tag by itself (see source code).

这必须是您自己在代码中添加的元素。 Post一个Minimal, Complete, and Verifiable example大家可以看看