JS 字符串判斷爲空
前言
博客書
版本說明
相關鏈接
示例
/**
* true 表示爲空, false 表示不爲空
*/
function isEmpty(obj){
if(typeof obj == "undefined" || obj == null || obj == ""){
return true;
}else{
return false;
}
}