jQuery API | jQuery API 中英文对照版 - jQuery在线查询手册 |
mouseover(fn) |
mouseover(fn)
在每一个匹配元素的mouseover事件中绑定一个处理函数。 返回值:jQuery 参数:
示例: $("p").mouseover( function() { alert("Hello"); } ); HTML 代码: <p>Hello</p> 结果: <p onmouseover="alert('Hello');">Hello</p> Bind a function to the mouseover event of each matched element. Return value: jQuery
Example: $("p").mouseover( function() { alert("Hello"); } );Before: <p>Hello</p>Result: <p onmouseover="alert('Hello');">Hello</p> |