为什么null < 1
以及以下几项比较在JavaScript中评估为true
?
document.write("null == 1 is " + (null == 1) + "<br />");
document.write("null == 0 is " + (null == 0) + "<br />");
document.write("<hr />");
document.write("null < 1 is " + (null < 1) + " ???<br />");
document.write("null >= 1 is " + (null >= 1) + "<br />");
document.write("<hr />");
document.write("null < 0 is " + (null < 0) + "<br />");
document.write("null >= 0 is " + (null >= 0) + " ???<br />");
document.write("<hr />");
document.write("null > 1 is " + (null > 1) + "<br />");
document.write("null <= 1 is " + (null <= 1) + " ???<br />");
document.write("<hr />");
document.write("null > 0 is " + (null > 0) + "<br />");
document.write("null <= 0 is " + (null <= 0) + " ???<br />");
&#13;