问题:~是什么意思? 答:js中是对数字取反 var a = null; var b = '23' console.log(~~null) console.log(~~b) 转载于:https://www.cnblogs.com/hzsu/p/10558210.html