swiper 更改indicator-dots 属性 隐藏面板指示点

indicator-dots 是否显示面板指示点

所谓面板指示点如下图

属性类型默认值必填说明最低版本
indicator-dots boolean false 是否显示面板指示点 1.0.0

 

如果隐藏的话 不能写 

<swiper indicator-dots="false" autoplay="true" interval="5000" duration="300">
</swiper>
因为 "false" 会被解析成字符串 而字符串是 true 值,所以直接写是不行的
 
解决如下
<swiper indicator-dots="{{false}}" autoplay="true" interval="5000" duration="300">
</swiper>
 
更改后的效果如下所示
 
原文地址:https://www.cnblogs.com/wangshuazi/p/11024602.html