首页javascriptanchorjQuery HTML Element - 如何开关元件内容

jQuery HTML Element - 如何开关元件内容

我们想知道如何开关元件内容。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(window).load(function(){
    $('.email_me a').html('<img src="http://www.w3cschool.cn/style/download.png">');
});
</script>
</head>
<body>
  <div class="email_me">
    <a href="mailto:info@mydomain.com">info@mydomain.com</a>
  </div>
</body>
</html>