jQuery event.relatedTarget 属性

jQuery 教程 · 2019-03-11 06:28:32

实例

返回元素的相关目标:

$("div").mouseenter(function(event){
    alert("relatedTarget 为: " + event.relatedTarget);
});

定义和用法

event.relatedTarget 属性返回当鼠标移动时哪个元素进入或退出。

语法


event.relatedTarget

参数 描述
event 必需。event 参数来自事件绑定函数。

点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html

查看所有标签

Approximation Algorithms

Approximation Algorithms

Vijay V. Vazirani / Springer / 2001-07-02 / USD 54.95

'This book covers the dominant theoretical approaches to the approximate solution of hard combinatorial optimization and enumeration problems. It contains elegant combinatorial theory, useful and inte......一起来看看 《Approximation Algorithms》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具