Created
May 10, 2016 01:30
-
-
Save kkeeth/f380a5439c2aa5b39495ace7021f64cb to your computer and use it in GitHub Desktop.
jQueryでマウスを動かした時、マウスの座標を取得
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('body').mousemove(function(e) { | |
| $('セレクタ').html('現在のX座標: ' + e.clientX + | |
| "<br />現在のY座標: " + e.clientY); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment