Open misty0304 opened 4 years ago
String('11') == new String('11'); String('11') === new String('11');
true false
解释: new String() 返回的是对象
== 的时候,实际运行的是 String('11') == new String('11').toString();是字符串与字符串对比,为true
=== 是字符串与对象对比,为false