首页javascriptwindowjQuery Event - 如何处理鼠标事件...

jQuery Event - 如何处理鼠标事件...

我们想知道如何处理鼠标事件。...

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.9.1.js'></script>

<script type='text/javascript'>
$(window).load(function(){
    $(window).resize(function() { console.log('you resized the window!'); });
});
</script>
</head>
<body>
  <div id='testDiv'>HERE'S SOME TEXT</div>
</body>
</html>