abstract:<!DOCTYPE html> <html> <head> <title>jquery的事件方法</title> <script type="text/javascript" src="jquery-3.3.1.min.js"></script&g
<!DOCTYPE html> <html> <head> <title>jquery的事件方法</title> <script type="text/javascript" src="jquery-3.3.1.min.js"></script> </head> <body> <script type="text/javascript"> $(document).ready(function () { $(document).mousemove(function (aa) { $('span').text('x:'+aa.pageX+'y:'+aa.pageY); }) a=0; $(window).resize(function () { //alert('窗口被调整大小'); $('b').text(a++); }) }) </script> <input type="text" name=""> <div > 当前鼠标的位置:<span></span> </div> <div><b>页面被调整次数:</b></div> </body> </html>