逻辑运算符一些值得注意的地方

console.log(2<5<3) //ture 错误,由于2<5 判断为true,true 隐式转换为1,所以程序判断为正确,逻辑判断错误。html 应写为:code console.log(2<5 && 5<3); //false
相关文章
相关标签/搜索