标签:
1 var i=1; 2 function a(){ 3 var aw="qw"; 4 console.log(aw); 5 function ba(){ 6 var qq="aaa"; 7 } 8 } 9 10 console.log(i); 11 condole.log(aw); 12 a(); 13 14 //1 15 //Uncaght ReferenceError : aw is not defined(...) 16 //qw
1 function c(){ 2 o="qw"; 3 4 function ba(){ 5 p="aaa"; 6 } 7 ba(); 8 } 9 c(); 10 11 console.log(o); 12 console.log(p); 13 14 // qw 15 // aaa
1 function ew(){ 2 var e=2; 3 function q(){ 4 var s=2,w=3; 5 console.log(s); 6 var d=s+w; 7 } 8 q(); 9 console.log(d); 10 } 11 undefined 12 ew(); 13 // 2 14 // Uncaught ReferenceError: d is not defined(…)
function fo(){ var a=3; }
fo()
标签:
原文地址:http://www.cnblogs.com/benstos/p/5743857.html