标签:
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 }
判断一个对象是否是控对象;
原文地址:http://www.cnblogs.com/suoking/p/5941161.html