onClick和mouseClick有什么区别? [英] what is the difference between onClick and mouseClick?
本文介绍了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,我将假定这是旧样式和新样式之间的区别
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有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文