2015-03-27 by wukong 猜猜会执行什么? //函数一vara='a1';functionf1(){vara=a||'a2';alert(a);}f1();//函数二varb='b1
2015-03-27 by wukong
猜猜会执行什么?
//函数一 var a = 'a1';function f1(){ var a = a || 'a2'; alert(a);}f1();// 函数二var b = 'b1';function f2(){ b = b || 'b2'; alert(b);}f2();