jquery 基本知识

1. 验证对象为空

jQuery.isEmptyObject(obj);

返回true  或者  false

2. 判断数组是否存在某个key

obj.hasOwnProperty(key);

3. 压缩代码工具网址:

http://tool.css-js.com/

原文地址:https://www.cnblogs.com/zhaozhilu/p/3309922.html