function-scope.as

来自「Swfdec still is development software, bu」· AS 代码 · 共 19 行

AS
19
字号
// makeswf -v 7 -s 200x150 -r 1 -o function-scope.swf function-scope.astrace ("Check the function scope chain works");Foo = function () {  var bla = "inner scope";  this.bla = "this";  this.func = function () {    trace (bla);    var bla = "innermost scope";    this.func = function () {      trace (bla);    };  };};bla = "outermost scope";x = new Foo ();x.func ();x.func ();

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?