因此这个时候须要以下处理 prototype
if((Array.isArray(变量) && 变量.length === 0) || (Object.prototype.isPrototypeOf(变量) && Object.keys(变量).length === 0)){ alert('该方法判断了{}花括号这种状况!'); } 变量