我不知道如何做到这一点选择孩子的div一类在事件处理中
我
<div class="a parent">
<div class="child">
</div>
</div>
<div class="b parent">
<div class="child">
</div>
</div>
我想这样的事情(在伪代码)
$(".parent").mousemove(function(){
select the `.child` which is the child of this div
})
所以当.a
被徘徊在它上面时只会选择一个.child
,而当.b
被徘徊时它会选择b的.child
只有
这应该包括this
或$this
或$(this)
或类似的东西..但它的混乱,我不知道从哪里读到它
究竟是什么让你困惑? jQuery函数在[文档](http://api.jquery.com/jQuery/#jQuery1)以及[所有遍历方法](http://api.jquery.com/category/traversing) /树遍历/)。花一些时间阅读API文档是值得的。也许[入门](http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery)教程对你也有帮助。 – 2013-03-24 11:08:48