判断字符串为空

/**
* 公共空判断
*/
export function stringIsEmpty(strVal) {

if (strVal == '' || strVal == null || strVal == undefined || strVal == 'undefined') {
return true;
} else {
return false;
}
}
posted @ 2023-02-03 15:12  士广  阅读(22)  评论(0)    收藏  举报