代码编辑器:
x
1
<script>
2
var str="Visit TWLE!";
3
var patt1=/RUN/g;
4
if(patt1.global)
5
{
6
document.write("g 模式有设置!");
7
}
8
else
9
{
10
document.write("g 模式没有设置!");
11
}
12
</script>
13
<script>
var str="Visit TWLE!";
var patt1=/RUN/g;
if(patt1.global)
{
document.write("g 模式有设置!");
}
else
{
document.write("g 模式没有设置!");
}
</script>