trentswd 发表于 2015-12-25 11:40 讲道理,prototype只有new出来的东西里面才有 var hello = new HelloWorld(); hello.hello();
dujian15 发表于 2015-12-25 11:42 万分感谢,我先调通代码,再言大恩
trentswd 发表于 2015-12-25 11:59 这里还真需要带prototype,因为这个function一般做构造用放在new后面,不过建议把这些初始化工作放到initia ...