Skip to content

Instantly share code, notes, and snippets.

@kkeeth
Created May 10, 2016 01:30
Show Gist options
  • Select an option

  • Save kkeeth/f380a5439c2aa5b39495ace7021f64cb to your computer and use it in GitHub Desktop.

Select an option

Save kkeeth/f380a5439c2aa5b39495ace7021f64cb to your computer and use it in GitHub Desktop.
jQueryでマウスを動かした時、マウスの座標を取得
$('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