//判断是否为空,为空返回true
function strIsNullOrEmpty(str0) {
var str = String(str0);
var res = false;
if (str == '' || str == null || str == 'null'
|| str == undefined || str == 'undefined')
res = true;
return res;
}
标签:undefined,对象,res,str0,js,str,var,为空
来源: https://www.cnblogs.com/v-dai/p/6944277.html