用这个: 1 if(jQuery.isEmptyObject(json)){ 2 console.log("为空"); 3 4 } 最简单!前提是得现引入jquery! 转载于:https://www.cnblogs.com/hangaozu/p/7576016.html