ITeye博客

Scope Chain

dmwdmc · 2013-06-13 17:44 · javascript ajax jquery · Web前端 · Markdown

作用域分为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.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。