案例:jquery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript" src="/js/jquery.js"></script>
4
<script type="text/javascript">
5
$(document).ready(function(){
6
  $("button").click(function(){
7
  $("p").hide(2000);
8
  alert("The paragraph is now hidden");
9
  });
10
});
11
</script>
12
</head>
13
<body>
14
<button type="button">Hide</button>
15
<p>This is a paragraph with little content.</p>
16
</body>
17
</html>
18