;(function($) { var wprtTheme = { // Main init function init : function() { this.config(); this.events(); }, // Define vars for caching config : function() { this.config = { $window : $(window), $document : $(document), }; }, // Events events : function() { var self = this; // Run on document ready self.config.$document.on( 'ready', function() { self.headerFixed(); self.tabs(); } ); // Run on Window Load self.config.$window.on( 'load', function() { self.parallax(); } ); }, headerFixed: function() { }, tabs: function() { }, parallax: function() { } }; // end wprtTheme // Start things up wprtTheme.init(); })(jQuery);
你知道世界顶级名表前五名都有哪些吗?http://m.kmhdlzb.com/标签:function,封装,函数,self,window,js,init,document,config From: https://www.cnblogs.com/hilxj/p/18096230