jQuery源码分析

函数可以实现类 var aQuery = function(selector, context) { //构造函数 } aQuery.prototype = { //原型 name:function(){}, age:function(){} } var a = new aQuery(); a.name(); 1、jQuery的无new构建 jQuery
相关文章
相关标签/搜索