首页javascriptuljQuery HTML Element - 如何显示li项目与下滑

jQuery HTML Element - 如何显示li项目与下滑

我们想知道如何显示li项目与下滑。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.5.2.js'></script>
</head>
<body>
  <li><a class="currentPage">Home</a></li>
  <li><a class="myaccount" style="display: none">My Account</a></li>
  <script type='text/javascript'>
    $(document).ready(function () {
        $('.currentPage').click(function() {
          $('.myaccount').slideDown('slow', function() {
            console.log(1);
          });
        });
    });
</script>
</body>
</html>