Created
June 2, 2016 01:35
-
-
Save lushijie/113f4e16754895106bc59abeb46c6bf8 to your computer and use it in GitHub Desktop.
简短版函数调用
This file contains 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 x() { | |
console.log('x') | |
}; | |
function y() { | |
console.log('y') | |
}; | |
var z = 3; | |
(z==3?x:y)(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment