1.jquery判空(1)当有这么一个需求的时候:if(str!=null && str!=undefined && str !='') 写为:if(!str){ //do something }(2)if(x==null)