网站实例地址:http://bbs.51js.com/viewthread.php?tid=59022
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<p><a href="javascript:void(0);" οnclick="myul.style.display = myul.style.display == 'none' ? '' : 'none';">显示/隐藏</a></p>
<ul id="myul">
<li>菜单</li>
<li>菜单</li>
<li>菜单</li>
<li>菜单</li>
<li>菜单</li>
</ul>
</body>
</html>