interface environment { a: string } let obj:environment = { a: 'xxx' } function test( this: {}, arg:string ) { console.log(this.a()); // xxx }; //调用: test.call(obj, 'xxx');