摘要:
第一次看jQuery的源代码,转得好晕,苦逼的isPlainObject, 判断是否为纯粹的对象isPlainObject: function( obj ) { if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {//为空,节点,window对象,非object返回false; return false; } if ( obj.constructor && !hasOwn.call(obj, "constructor" 阅读全文
posted @ 2011-08-30 16:26
不知道用什么名字
阅读(937)
评论(2)
推荐(1)


浙公网安备 33010602011771号