判断字符是否为空的方法

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

function isEmpty(obj){
if(typeof obj == “undefined” || obj == null || obj == “”){
return true;
}else{
return false;
}
}

猜你喜欢

转载自blog.csdn.net/xiaoqing19910812/article/details/84063446