标签: javascript arrays constructor
就像下面显示的示例一样,如何将this.a的值传递给b数组?
this.a
b
function Foo(){ }; Foo.prototype={ bar:function(){ this.a=1; }, b:[this.a] }