string summer='abcdefg';
if (summer.indexof('g')!=-1)
{
这个字符串中带有g的字符
}
else
这个字符串中不存在g的字符!
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3