【发布时间】:2012-10-18 01:09:22
【问题描述】:
我正在尝试将关于结合 createjs 和 box 2d 的豪华动物教程转换为 Typescript。到目前为止,我正在制造的混乱似乎正在奏效。但现在我在这条线上得到了Uncaught TypeError: Cannot call method 'push' of undefined:
this.actors.push(this);
但actors 在 .ts 上定义为 private actors = [];。我尝试了可能的方法,但没有任何工作。有谁知道怎么回事?
app.ts => http://paste.laravel.com/8HM default.html => http://paste.laravel.com/8HN
使用 VS 2012。
【问题讨论】:
标签: javascript typescript