Created
May 20, 2013 09:39
-
-
Save QETHAN/5611299 to your computer and use it in GitHub Desktop.
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
<html> | |
<head> | |
<script type="text/javascript"> | |
alert(h);//function..... | |
alert(a);//undefined | |
var a = 3; | |
function h() { | |
alert('22'); | |
} | |
</script> | |
</head> | |
</html> | |
js代码解释器会爸函数声明放在顶部,普通变量声明按照代码所在位置解释 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment