function getStock(name:string){
this.name =name;
setInterval(()=>{
console.log("name is :"+ this.name);
},10000)
}
var stock = new getStock("hello");
这是什么鬼
什么原因?
问题已解决,