js 判断当前鼠标在哪个元素上

2025-03-13 16:28:35
推荐回答(2个)
回答1:

if (event.pageX == /* 此处引导到元素 */.x && event.pageY == /* 此处引导到同一个元素*/.y)
{
    // 干什么
}

回答2: