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