本文介绍了onClick和mouseClick有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

想知道这两者的主要区别是什么:onClick和mouseClick ..

wondering what is the major difference between these two: onClick and mouseClick..

推荐答案

假设您在谈论Java,则区别就在文档:

Assuming that you're talking about Java, the difference is right there in the documentation for MouseEvent:

* a mouse button is pressed
* a mouse button is released
* a mouse button is clicked (pressed and released)
* the mouse cursor enters the unobscured part of component's geometry
* the mouse cursor exits the unobscured part of component's geometry

如果您在谈论JavaScript,我将假定这是旧样式和新样式之间的区别事件处理.但是我只使用过onClick,所以无法给出确切的答案.

If you're talking about JavaScript, I'm going to assume that it's the difference between old style and new style event handling. But I've only ever used onClick, so can't give a definitive answer.

这篇关于onClick和mouseClick有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 12:27