Last active
August 29, 2015 14:00
-
-
Save KJlmfe/11309414 to your computer and use it in GitHub Desktop.
JavaScript 设计模式 - Facade(外观模式/门面模式)-组合接口
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 getName = function(){ | |
return "Bob"; | |
} | |
var getSex = function(){ | |
return "man"; | |
} | |
var getUserInfo = function(){ | |
var info = getName() + getSex(); | |
return info; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment