Created
April 13, 2013 00:43
-
-
Save zacker330/5376291 to your computer and use it in GitHub Desktop.
模块化开发的js的基础
传入undefined是为了防止使用到了别人修改过的undefined
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(window, $, undefined) { | |
| var myFunc = function() { | |
| // ... | |
| } | |
| window.myFunc = myFuc; | |
| }) (window, jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment