Created
March 17, 2018 15:05
-
-
Save linx4200/090502ddc9d057748be53b7d54ddf351 to your computer and use it in GitHub Desktop.
【Factory】单例模式
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
var A = { | |
Util: { | |
util_method1: function() {}, | |
util_method2: function() {}, | |
// ... | |
}, | |
Tool: { | |
tool_method1: function() {}, | |
tool_method2: function() {}, | |
// ... | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment