Javascript functions are objects and they have scope chain associated with them. If some closure exists with a function that has a different scope chain than the one that was in effect when they were defined.As an example invoking function is a returned function object from some other (parent) function that had a scope chain with a large number of private variables, so invoking function will use the already existing inherited scope chain of parent function as well as bounded old variables.
在不考虑上级职能的情况下,是否可检查与范围链有关的变量?
理想的情况是,必须跟踪父母职能中确定的变数,我的问题是没有考虑父母的职能,我们能否看到与范围链有关的变数?
如果是(任何方法?)我们能检查与范围链有关的变数的现值?
也可以给人提供范围链的结构(至少我知道它不像万国邮联那样的杂货,而是什么东西)。