标签:san ret 判断 color hit bottom key pos 字符
js中:
varCts = "aaddssyes";if(Cts.indexOf("yes") > 0 ){ alert(‘Cts中包含Text字符串‘);}functionIndexDemo(str){ varstr1 = "BABEBIBOBUBABEBIBOBU" vars = str1.indexOf(str); return(s);}判断java或js中的某个字符串中是否包含有某个字符或是字符串
标签:san ret 判断 color hit bottom key pos 字符
原文地址:http://www.cnblogs.com/huyanlon/p/6865712.html