JQuery中使用on方法绑定hover事件实例
作者:Terry2017.02.11来源:Web前端之家浏览:11582评论:0
文本教你用on方法,模拟hover方法。
代码如下:
$(obj).on("mou
SEOver mou
seout",
function(
event){
if(event.
type == "mouseover"){
//鼠标悬浮
}else if(event.type == "mouseout"){
//鼠标离开
}
})
赶紧去试试吧~
温馨提示:本文作者系
Terry ,经
Web前端之家编辑修改或补充,转载请注明出处和
本文链接:https://jiangweishan.com/article/svg1486742400979.html
网友评论文明上网理性发言已有0人参与
发表评论: