/**
* 判断字符串是否不为空,包括判断null/undefined
* @param {Object} str
*/
isNotEmpty : function(str) {
if(typeof(str)=="undefined" || ""+str =="undefined" || str == null) {
return false;
}
var t = this.trim(str);
if(t == "" || t == "null" || t == "undefined") {
return false;
}
return true;
},
* 判断字符串是否不为空,包括判断null/undefined
* @param {Object} str
*/
isNotEmpty : function(str) {
if(typeof(str)=="undefined" || ""+str =="undefined" || str == null) {
return false;
}
var t = this.trim(str);
if(t == "" || t == "null" || t == "undefined") {
return false;
}
return true;
},