button属性的值和说明

button属性仅仅用于onmousedown,onmouseup,onmousemove事件。对于其他事件,无论鼠标状态如何,都返回0
说明 说明
0 表示没有按键 4 按下中间键
1 按下左键 5 同时按下左键和中间键
2 按下右键 6 同时按下右键和中间键
3 同时按下左键和右键 7 同时按下左键,右键和中间键

猜你喜欢

转载自blog.csdn.net/qq_40083102/article/details/80040347