【前端技术】一篇文章搞掂:JS 待补充 //以下等价 if(val) if(val!=null&&val!=undefined&&val!="") //以下等价 if(!val) if(val==null||val==undefined||val=="")