判断对象是否为空 2019-07-25 本文已影响0人 天天向上er JSON.stringify(obj) == '{}' if(JSON.stringify(obj) == '{}'){ console.log('该对象为空') }else{ console.log('该对象不为空') }