首页javascriptimgjQuery HTML Element - 如何处理地图上的点击事件

jQuery HTML Element - 如何处理地图上的点击事件

我们想知道如何处理地图上的点击事件。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-compat-git.js'></script>
<script type='text/javascript'>
$(window).load(function(){
   $('area').on('click', function(){ console.log('click'); })
});
</script>
</head>
<body>
  <img src="http://www.w3cschool.cn/style/download.png" usemap="#map" />
  <map name="map">
    <area shape="rect" coords="25,25,75,75" href='#' />
  </map>
</body>
</html>