wx.onMouseDown(function callback)
监听鼠标按键按下事件
参数
function callback
鼠标按键按下事件的回调函数
参数
Object res
属性 | 类型 | 说明 |
x | number | 事件触发时鼠标所在的位置横坐标 |
y | number | 事件触发时鼠标所在的位置纵坐标 |
button | number | 按键类型,0左键,1中键,2右键 |
timeStamp | number | 事件触发时的时间戳 |
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.