【前端技术】一篇文章搞掂:JS

待补充

//以下等价
if(val)
if(val!=null&&val!=undefined&&val!="")

//以下等价
if(!val)
if(val==null||val==undefined||val=="")

  

原文地址:https://www.cnblogs.com/LiveYourLife/p/10529796.html