vue中“展开详情”“收起详情”
第一步:<div v-show="showregion"></div>第二步:<div class="col-md-12 text-center" @click="showmore" style="padding-top:40px;"><span class="showstyle">{{ showregion?"收起详情":...
·
第一步:
<div v-show="showregion"></div>
第二步:
<div class="col-md-12 text-center" @click="showmore" style="padding-top:40px;">
<span class="showstyle">{{ showregion?"收起详情":"展开详情" }}</span>
</div>
第三步:
showmore(){
this.showregion = !this.showregion;
},
更多推荐
已为社区贡献2条内容
所有评论(0)