判断字符串是否是空格
String.prototype.trim = function () {
return this.replace(/(^\s*)|(\s*$)/g, '');
}
function isEmpty(obj) {
if (typeof obj === "undefined" || obj == null || obj.trim() == "") {
return true;
} else {
return false;
}
}