案例:JavaScript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<script type="text/javascript">
5
6
function sayHello() {
7
  alert("hello");
8
}
9
10
sayHello.alternate = function() {
11
  alert("hi");
12
}
13
14
sayHello();
15
sayHello.alternate();
16
17
18
</script>
19
20
</body>
21
</html>
22