这段代码
beforeEach(() => {
this.asd= '123';
this.sdf= '234';
this.dfg= '345';
this.fgh= '456';
});
Run Code Online (Sandbox Code Playgroud)
已被巴别塔描述为:
beforeEach(function() {
undefined.asd= '123';
undefined.sdf= '234';
undefined.dfg= '345';
undefined.fgh= '456';
});
Run Code Online (Sandbox Code Playgroud)
为什么?