(function(){
//暴露外部一个使用的接口
var jQuery = window.jQuery = window.$ = function(){...};
//处理原型对象
jQuery.fn = jQuery.prototype = {...};
//实现继承
jQuery.extend = jQuery.fn.extend = function(){...};
//添加静态方法
jQuery.extend({...});
//添加实例方法
jQuery.fn.extend({...});
})()
jquery最最精简的架构
最新推荐文章于 2023-03-30 08:59:14 发布