【发布时间】:2011-01-15 01:52:09
【问题描述】:
我有这个:
var Test = new function() {
this.init = new function() {
alert("hello");
}
this.run = new function() {
// call init here
}
}
我想在运行中调用init。我该怎么做?
【问题讨论】:
-
JavaScript 中没有类或类方法
-
@Chris Ballance 这不是明确真的..
标签: javascript class methods