GlobalEventHandlers
mixin 中的 onmouseleave
属性是用于处理鼠标移出(mouseleave
)事件的事件管理器(EventHandler
)。
mouseleave
事件在定点设备(通常来说指的是鼠标) 移出某个元素时触发。
语法
element.onmouseleave = handlerFunction; var handlerFunction = element.onmouseleave;
handlerFunction
可以是 null
,也可以是一个用以指示如何处理该事件的 JavaScript 函数 。
规范
Specification | Status | Comment |
---|---|---|
HTML Living Standard onmouseleave |
Living Standard |
Browser compatibility
BCD tables only load in the browser