实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
    <title>Dynamic Properties Example 2</title>
5
    <script type="text/javascript">
6
        var name = "Nicholas";
7
        name.age = 27;
8
        alert(name.age);    //undefined
9
    </script>
10
</head>
11
<body>
12
13
</body>
14
</html>