基本方式 方式描述undefinedObject === undefined判断对象长度Object.keys(obj).length == 0JSONJSON.stringify(Object) === '{}' 判断是否定义 Object === undefined 判断对象长度 Object.keys(obj).length == 0 通过JSON判断 JSON.stringify(Object) === '{}'