jquery 没有on hover 函数
可以使用以下方法替代
$(document).on('mouseover mouseout','.class',function(event){
	if(event.type == 'mouseover'){
		//鼠标经过
	}
	if(event.type == 'mouseout'){
		//鼠标离开
	}
});可以使用以下方法替代
$(document).on('mouseover mouseout','.class',function(event){
	if(event.type == 'mouseover'){
		//鼠标经过
	}
	if(event.type == 'mouseout'){
		//鼠标离开
	}
});评论
评论列表
暂无评论,快来抢沙发吧~