exec方法在Flash中如何使用

2024-10-15 05:22:44

1、定义一个字符串变量article和一个数组变量arr。

exec方法在Flash中如何使用

3、定义一个正则表达式,匹配的单词为the,不区分大小写。

exec方法在Flash中如何使用

5、用exec方法可以得到字符串和索引等信息,先输出匹配的字符串。

exec方法在Flash中如何使用

7、最后,输出所搜索的文章,显示在窗口中。

exec方法在Flash中如何使用
猜你喜欢