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
舉報
2019-11-25
什么原因?
2019-07-01
問題已解決,