第一种if(a)a为以下值时转换为false false undefined null 0 -0 NaN "" 转载于:https://www.cnblogs.com/yirgaMonkey/p/9496529.html