【发布时间】:2017-05-02 00:30:38
【问题描述】:
我正在尝试在点击时切换另一个 div 的类。
类似:
<div class="link">
<p> Click here to show the content </p>
<div class="content">
<p>This is the hidden content</p>
</div>
</div>
所以内容 css 最初应该是:显示:无
如何在 vue 上做到这一点,当点击 p 时,切换下面的元素。
提前谢谢!
【问题讨论】:
标签: javascript html css vue.js vuejs2