仿寫jQuery總結

閉包 使用匿名函數||閉包 實現局部變量避免變量的全局污染html (function(){})() window全局方法 window.$=window.jQuery jQuery無new化操做 function jQuery(){ return new jQuery.prototype.init() } jQuery.prototype.init=function(){ ret
相關文章
相關標籤/搜索