typescript 箭头表达式按老师写的,怎么是这样子
function getStock(name:string){
this.name =name;
setInterval(()=>{
console.log("name is :"+ this.name);
},10000)
}
var stock = new getStock("hello");
这是什么鬼
function getStock(name:string){
this.name =name;
setInterval(()=>{
console.log("name is :"+ this.name);
},10000)
}
var stock = new getStock("hello");
这是什么鬼
2019-07-01
举报