实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<script>
6
var firstname;
7
firstname="Hege";
8
document.write(firstname);
9
document.write("<br>");
10
firstname="Tove";
11
document.write(firstname);
12
</script>
13
14
<p>The script above declares a variable,
15
assigns a value to it, displays the value, changes the value,
16
and displays the value again.</p>
17
18
</body>
19
</html>
20
21
22