为什么有人会使用像这样的表达式
if(!!window.JSON) alert('exists');
而不仅仅是
if(window.JSON) alert('exists');
?
是否有"!!"的另一种用法 东西?
javascript
javascript ×1