当字符与其他类型相比较时将按照值来进行比较ture将转换为1,false将转换为0,字符也将转换成数值
所以"1" == true 结果为true,"2"==true结果为false,"0"==false结果为true,"true"转换为数值将得到NaN
所以"true"==true结果为false
所以"1" == true 结果为true,"2"==true结果为false,"0"==false结果为true,"true"转换为数值将得到NaN
所以"true"==true结果为false
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货