对每一个比特位执行非(NOT)操作。NOT a 结果为 a 的反转(即反码);
即把0和1全部取反
if (~str.indexOf(searchFor))
{
// searchFor 包含在字符串中
}
else
{
// searchFor 不包含在字符串中
}
对每一个比特位执行非(NOT)操作。NOT a 结果为 a 的反转(即反码);
即把0和1全部取反
if (~str.indexOf(searchFor))
{
// searchFor 包含在字符串中
}
else
{
// searchFor 不包含在字符串中
}
(function(d, s, id) { let js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) retur