我需要帮助将 jQuery 代码转换为 Vue js
<div class="single-why" v-for="(single, index) in data" :key="index">
<div class="content">
<h5 class="mt-3">100% Certified </h5>
</div>
<div class="hover-content" style="display:none">
<h5>100% Certified Jewellery</h5>
</div>
</div>
这里我需要:当悬停在 上时.single-why
,需要显示.hover-content
为 jQuery
$('.single-why').on('hover', function (){
$(this).children('.hover-content').show()
})
请建议我使用 vue。谢谢