案例:javascript案例     状态:可编辑再运行    进入横版
x
 
1
<html>
2
<body>
3
4
<script type="text/javascript">
5
var str="Is this all there is?"; 
6
var patt1=/\s/g;
7
document.write(str.match(patt1));
8
</script>
9
10
</body>
11
</html>
12

 运行结果 
 北美留学生论坛