摘要:
jQuery源码分析-03构造jQuery对象-工具函数这篇文章对jQuery中扩展的一些工具函数做了下简要分析关于isPlainObject函数,isPlainObject分析与重构这篇文章指出其存在bug,history,location,navigator,screen可以顺序通过 isPlainObject的检测返回true.经本人测试,在ie8中确实存在bug返回true,但chrome中则返回的是false。经过仔细分析发现bug原因,若obj = window.location, 在ie8中第二个if语句的第一个判断条件obj.constructor的值为undefined,而在 阅读全文
posted @ 2013-05-15 15:32
一直做梦的猫
阅读(225)
评论(0)
推荐(0)
浙公网安备 33010602011771号