mymelody
function  isValue(o) {
    return (this.isObject(o) || this.isString(o) || this.isNumber(o) || this.isBoolean(o));
}
function isString(o) {
    return typeof o === \'string\';
}
function isObject(o){
    return (o && (typeof o === \'object\' || $.isFunction(o))) || false;
}

//判断当前字符串是否为空
function isEmpty(o) {
    if (!this.isString(o) && this.isValue(o)) {
        return false;
    } else if (!this.isValue(o)) {
        return true;
    }
    o = $.trim(o).replace(/\&nbsp\;/ig, \'\').replace(/\&#160\;/ig, \'\');
    return o === "";
}

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-13
  • 2021-05-29
  • 2021-11-27
  • 2021-11-27
  • 2021-10-19
  • 2022-01-13
  • 2022-01-06
猜你喜欢
  • 2021-06-11
  • 2022-02-10
  • 2021-11-28
  • 2021-11-28
相关资源
相似解决方案