(\'b\' + \'a\' + +\'a\' + \'a\' + +\'\').toLowerCase() //\"banana0\"0 == \'0\' //true0 == [] //true\'0\' == [] //falsetypeof NaN //number0.1 + 0.2 == 0.3 //false 精度丢失Math.max() //-Infinity 负无穷Math.min() //Infinity 正无穷[] + [] //\"\"[] + {} //\"【object object】\"{} + [] // 0true + true + true === 3 //truetrue - true //0(!+[] + [] + ![]).length //9 \"truefalse\"9 + \"1\" //9191 - \"1\" //90[] == false //true0 == false //trueundefined == false //trueNaN == false //true\"\" == false //true 包括多空格null == false //true!true + 39 //39true + 93 //94
js彩蛋合集(煮狮爷留下的特点)
未经允许不得转载:爱站程序员基地 » js彩蛋合集(煮狮爷留下的特点)