//布尔值转数字 let a = true a * 1 = 1 +a = 1 let b = false b * 1 = 0 +b = 0 //数字转布尔值 let c = 1 !!c = true let d = 0 !!d = false