//判断字符是否为空的方法 function isEmpty(obj) { return typeof obj == "undefined" || obj == null || obj === "" || obj === ''; }