理解Javascript_13_执行模型详解
函数执行环境 简单的代码: 复制代码 代码如下: function say(msg,other){ var str = "nobody say:"; this.name = "笨蛋的座右铭"; function method(){};//var method = function(){}; alert(str+msg); } say("hello world"); alert(name);//笨蛋的座右铭 当调用say方法时,第一步是创建其执行环境,在创...