jquery 基本知识 1. 验证对象为空 jQuery.isEmptyObject(obj); 返回true 或者 false 2. 判断数组是否存在某个key obj.hasOwnProperty(key); 3. 压缩代码工具网址: http://tool.css-js.com/