<script src="../../scripts/jquery.js" type="text/javascript"></script> <div id="XY" ></div> <script> $(document).ready(function () { $(document).mousemove(function(e){ $('#XY').html("X : " + e.pageX + " | Y : " + e.pageY); }); }); </script>
获取鼠标的坐标位置