怎么全是全局变量了?
function f1(){ var a=b=1; }; f1(); console.log(typeof a); console.log(typeof b); VM551:6 number VM551:7 number
我用谷歌的控制台,怎么全是number呢
function f1(){ var a=b=1; }; f1(); console.log(typeof a); console.log(typeof b); VM551:6 number VM551:7 number
我用谷歌的控制台,怎么全是number呢
2015-05-16
举报