js判断不为空 null

function check_not_null(obj){
                if(obj!=null&&obj!=""&typeof(obj)!="undefined"){
                    return true;
                }else{
                    return false;
                }
            }

猜你喜欢

转载自blog.csdn.net/weixin_38570967/article/details/80897415