【发布时间】:2018-03-10 16:31:11
【问题描述】:
基本上我想要做的是单击我的按钮并立即隐藏此按钮并使其出现另一个。
我的两个按钮是:
<button @click="" value="Add to favorites" style="font-weight: 700;color:#428bca;margin-left:30px;height:30px;border-radius:4px" name="favorites">Add to favorites</button>
<button @click="" value="Delete from favorites" style="font-weight: 700;color:#428bca;margin-left:30px;height:30px;border-radius:4px" name="delete" v-if="show">Delete from favorites</button>
请我只需要 vue.js 的解决方案
【问题讨论】: