1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
<title>Null類型</title>
6
<script type="text/javascript">
7
/*
8
* 項(xiàng)目: book -> Javascript高級(jí)程序設(shè)計(jì).pdf -> 第2章 -> 2.6 原始類型
9
*
10
* 說明: Null類型也只有一個(gè)值,即null它的字面量。undefined類型實(shí)際上是從null類型的子類,因此ECMAScript把它們定義為相等。
11
*
12
* 練習(xí)者: Alex刺客
13
*
14
* 日期: 2009-12-13
15
*/
16
17
alert (null == undefined);
18
//true
19
</script>
20
</head>
21
<body>
22
</body>
23
</html>

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23
