1 function isEmptyObject ( obj ) {2 if (typeof onj != 'object') return false;3 for (var i in obj ) {4 return false;5 }6 return true;7 }
本文共 210 字,大约阅读时间需要 1 分钟。
1 function isEmptyObject ( obj ) {2 if (typeof onj != 'object') return false;3 for (var i in obj ) {4 return false;5 }6 return true;7 }
转载于:https://www.cnblogs.com/suoking/p/5941161.html