实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<script>
6
7
var str="Hello world!";
8
document.write(str.match("world") + "<br>");
9
document.write(str.match("World") + "<br>");
10
document.write(str.match("world!"));
11
12
</script>
13
14
</body>
15
</html>
16
17