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(/\ \;/ig, \'\').replace(/\ \;/ig, \'\'); return o === ""; }