String.prototype.isBlank = function(){
var s = $.trim(this);
if(s == "undefined" || s == null || s == "" || s.length == 0){
return true;
}
return false;
};
调用方式
if(!str.isBlank()){
}
String.prototype.isBlank = function(){
var s = $.trim(this);
if(s == "undefined" || s == null || s == "" || s.length == 0){
return true;
}
return false;
};
调用方式
if(!str.isBlank()){
}