jQuery中防止事件冒泡的方法: $("#testarea").mousedown(function(event){if(event.target==this){destroyImg();}}); 
这是防止子元素干扰. 防止父元素可以直接定义鼠标事件的方法.网上搜一下可以找到的啊.这是我以前收藏的一段.主要是event.target 这里的事件处理机制跟ff是相仿的,与ie下的fromElement和toElement不同,但是在jquery中是多浏览器兼容的