2012年4月8日

摘要: 分析的是1.7.1版本 http://code.jquery.com/jquery-1.7.1.jsjquery返回的是这个对象new jQuery.fn.init( selector, context, rootjQuery );在init函数里面的逻辑是:如果不输人参数,就返回this对象输入... 阅读全文

posted @ 2012-04-08 12:41 洪庸 阅读(85) 评论(0) 推荐(0) 编辑

摘要: //这里如果只写var a;那么后续会不能访问a.run方法var a = {};alert(a);(function(){ a.run = function(){ alert('run'); } a.run();})();a.run(); ... 阅读全文

posted @ 2012-04-08 12:12 洪庸 阅读(199) 评论(0) 推荐(0) 编辑


Copyright © 2024 洪庸
Powered by .NET 8.0 on Kubernetes