0、-0、NaN、’’、null、undefined、document.all在Boolean转换为false值,其余任何值都会被转换为true
console.log('') // false
console.log(0) // false
console.log(NaN) // false
console.log(null) // false
console.log(undefined) // false
console.log(-0) // false
console.log(document.all) // false
Boolean(12) //true
Boolean([1,2]) //true