對每一個比特位執行非(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