我正在尝试在元素“goto”上添加鼠标悬停类,并将类“活动”赋予带有类“箭头”的箭头,这是如何完成的?
$('.goto').on('mouseover',function() {
$('.goto').find('.arrow').addClass('active')
})
<span class="goto">Hover here<span class="arrow"><img src="assets/img/arrow.png"> </span></span>
<span class="goto">Hover here<span class="arrow"><img src="assets/img/arrow.png"></span></span>