如何检查一个字符串是否包含 flash/Actionscript 3 中的另一个字符串?
感谢帮助。
最佳答案
var a = "hello world";
if(a.indexOf("world") >= 0){
//It contains the String!
}
关于actionscript-3 - ActionScript 3 : check if string contains another string,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9229572/