Javascript 总结 - 随笔

JQuery 

(function (window,undefined){
    var jQuery = function(selector, context){
             return new jQuery.fn.init(selector,context);   
    }
   jQuery.fn = jQuery.prototype = {
       init: function (selector, undefined){
      //todo sth initialization return this: }} jQuery.fn.init.prototype = jQuery.fn; window.jQuery = window.$ = jQuery; })(window);

  

posted @ 2013-03-28 14:53  欧西  阅读(184)  评论(0编辑  收藏  举报