why?

function test(){
 
    alert("0" == false);
 
    alert($("#sortPublic").val() == "0");
    
    alert(!($("#sortPublic").val()));
 
    alert(!false); 
 
        alert(!"0"); 

the result:
true
true
false
true
false 
原文地址:https://www.cnblogs.com/xiaoxiaof/p/3718870.html