JS中!!的作用

!!是将表达式强制转化为bool值的运算,

NaN || undefined || null || 0 || ''都为false
原文地址:https://www.cnblogs.com/maidongdong/p/10469756.html