Get the App
SLTechnology News&Howtos  ›  Development  › 

How to obtain the X and Y coordinates of the mouse by jQuery

Shulou Source: shulou.com Published: 2022-06-01 05:11:49 10月04日 Update

Editor to share with you how jQuery obtains the X and Y coordinates of the mouse, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.

Get the X and Y coordinates of the mouse $(document) .mousemove (function (e) {$(document) .ready (function () {$(). Mousemove (function (e) {$('# XY'). Html ("Gbin1 X Axis:" + e.pageX + "| Gbin1 Y Axis" + e.pageY);});}); these are all the contents of the article "how to obtain the X and Y coordinates of the mouse by jQuery". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Coordinates mouse articles content not much most more knowledge industry information information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Redmi Apple macOS NVidia