Scope Chain
作用域分为Global Scope, Local Scope. with,catch will affect the Scope link. global scope variable is one attribute of window. a var without define will be treated as a global variable.
function getA(){ name="ddd"; } alert(window.name);//
"ddd" will popup.