Home  >  Article  >  Web Front-end  >  jquery 之 $().hover(func1, funct2)使用方法_jquery

jquery 之 $().hover(func1, funct2)使用方法_jquery

WBOY
WBOYOriginal
2016-05-16 17:52:531117browse

因为hover不是标准的事件,因此无法直接使用live进行处理,故使用以下方法代替,效果一样。

复制代码 代码如下:

$("table tr").live({
mouseenter:
function()
{
//todo
},
mouseleave:
function()
{
//todo
}
});

在循环输出的
中,只针对某个
下的内容进行处理的时:可以使用$(this).find()来实现:
复制代码 代码如下:


water">
action" style="display:none">
{lang user/repick}

{lang user/reply}



water">
action" style="display:none">
{lang user/repick}

{lang user/reply}



water">
action" style="display:none">
{lang user/repick}

{lang user/reply}



water">
action" style="display:none">
{lang user/repick}

{lang user/reply}






Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn