JQuery中使用on方法綁定hover事件方法
所屬欄目: 網(wǎng)站開發(fā) | 更新時(shí)間:2017-8-9 | 閱讀:3962 次
$(obj).on("mouseover mouseout",function(event){
if(event.type == "mouseover"){
//鼠標(biāo)懸浮
}else if(event.type == "mouseout"){
//鼠標(biāo)離開
}
})
if(event.type == "mouseover"){
//鼠標(biāo)懸浮
}else if(event.type == "mouseout"){
//鼠標(biāo)離開
}
})