var temp = "hello,world";
if(temp.indexOf("hello") >= 0 ){  
    alert('temp中包含hello字符串');  
}