What is "~" represent in this JavaScript?
This question already has an answer here:
It's bitwise NOT
: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators
"take the result of the indexOf lookup, bitwise invert it, then take the logical NOT of that"
链接地址: http://www.djcxy.com/p/75052.html上一篇: 如何检查URL是否包含给定的字符串?