天天看点

JavaScript判断字符是否为空的方法

具体方法:

//判断字符是否为空的方法
function isEmpty(obj){
    if(typeof obj == "undefined" || obj == null || obj == ""){
        return true;
    }else{
        return false;
    }
} 
           

继续阅读