标签:style class blog c code java
1
2
3
4
5
6
7 |
function
test(a, b) { var
c = 20; function
d(){} var
e = function
_e(){}; ( function
x(){}); } test(30); |
1
2
3
4
5
6
7 |
VO (test FunctionContext) = { a: 30, b: undefined, d: <reference to FunctionDeclaration "d" >, c: undeifined, e: undefined } |
1
2 |
VO[ ‘c‘ ] = 20; VO[ ‘e‘ ] = <reference to FunctionDeclaration "_e" >; |
1
2
3
4
5 |
alert(x); //function var
x = 10; x = 20; function
x() {} alert(x); //20 |
1
2
3 |
VO = {} VO[ ‘x‘ ] = <reference to FunctionDeclaration "x" >; VO[ ‘x‘ ] = <the value is not disturbed, still function > |
1
2 |
V[ ‘x‘ ] = 10; V[ ‘x‘ ] = 20; |
1
2
3
4
5
6
7
8 |
function
test(a, b) { var
c = 20; console.log(a); //结果是什么?为什么? function
a(){} var
e = function
_e(){}; ( function
x(){}); } test(30); |
标签:style class blog c code java
原文地址:http://www.cnblogs.com/xiaoheimiaoer/p/3751042.html