问题:

this .list=*** ; 似乎不起作用

 

 

 

解决:

应该是由于闭包里边的this 变化了

改为 (date,statu)=>….  typescript 的lambda 以便capture this

 

参考:

http://www.typescriptlang.org/Handbook#functions-lambdas-and-using-39this39

 

发表评论

电子邮件地址不会被公开。