实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<script>
6
7
var txt="Hello World!";
8
document.write("<p>" + txt.toUpperCase() + "</p>");
9
document.write("<p>" + txt.toLowerCase() + "</p>");
10
document.write("<p>" + txt + "</p>");
11
12
</script>
13
14
<p>
15
The methods returns a new string.
16
The original string is not changed.
17
</p>
18
19
</body>
20
</html>
21
22