var temp = "hello,world"; if(temp.indexOf("hello") >= 0 ){ alert('temp中包含hello字符串'); }
转载于:https://blog.51cto.com/zhaodan/1655717
var temp = "hello,world"; if(temp.indexOf("hello") >= 0 ){ alert('temp中包含hello字符串'); }
转载于:https://blog.51cto.com/zhaodan/1655717