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