2011-07-21 181 views

回答

4

使用字符串的indexOf功能:

var str = "something"; 
var other = "thi"; 
if (str.indexOf(other) != -1) { 
    // other is a part of the original string. 
} 
相關問題