Created
March 4, 2015 08:40
-
-
Save zry656565/a420989bfa8cb832addd 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 a(x, y){ | |
var x = x; //这句加了和没加效果一样,但也许能帮助你理解 | |
y = function() { x = 2; }; | |
return function(){ | |
var x = 3; | |
y(); | |
console.log(x); | |
}.apply(this, arguments); | |
} | |
a(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mark!神来之笔。谢谢楼主