下面总结下JS等值判断一般原则: ==表示“值相等”,===表示“严格相等”true==1,true!==1false==0, false!==0null==undefined, null!==undefinedNaN和谁都不相等,和自己也不相等