Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 Actionscript 3:检查字符串是否包含其他字符串_Actionscript 3 - Fatal编程技术网

Actionscript 3 Actionscript 3:检查字符串是否包含其他字符串

Actionscript 3 Actionscript 3:检查字符串是否包含其他字符串,actionscript-3,Actionscript 3,如何检查flash/Actionscript 3中的字符串是否包含其他字符串 感谢您的帮助。可能重复的事实上,如果您在google中键入此问题的标题,这是第一个结果。 var a = "hello world"; if(a.indexOf("world") >= 0){ //It contains the String! }

如何检查flash/Actionscript 3中的字符串是否包含其他字符串


感谢您的帮助。

可能重复的事实上,如果您在google中键入此问题的标题,这是第一个结果。
var a = "hello world";
if(a.indexOf("world") >= 0){
//It contains the String!
}