mirror of
https://github.com/wangdoc/javascript-tutorial.git
synced 2025-12-29 01:13:02 +08:00
docs(event): fix mouse #79
This commit is contained in:
@@ -233,7 +233,7 @@ currentEvent.movementY = currentEvent.screenY - previousEvent.screenY。
|
||||
// <body onmousedown="showCoords(event)">
|
||||
function showCoords(evt) {
|
||||
console.log(
|
||||
'screenX value: ' + evt.screenX + '\n'
|
||||
'screenX value: ' + evt.screenX + '\n',
|
||||
'screenY value: ' + evt.screenY + '\n'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user