<p class="focus-span" v-if="item.concernStatus==2" @click="focusTogether(item.userId)" @mouseover="over($event)" @mouseout="out($event)">互相关注</p>
用js 移入事件,绑定event,然后打印出来看一下,然后改变文字
over (t) {
t.target.innerText = '取消关注'
},
<p class="focus-span" v-if="item.concernStatus==2" @click="focusTogether(item.userId)" @mouseover="over($event)" @mouseout="out($event)">互相关注</p>
用js 移入事件,绑定event,然后打印出来看一下,然后改变文字
over (t) {
t.target.innerText = '取消关注'
},