标签: javascript
可能重复: javascript bitwise operator question
文档说,它是bitwise NOT。但我不明白这些例子:
bitwise NOT
var a = ~1; a -2 var a = ~8; a -9 var a = ~-1; a 0