我有一个MainWindow类,一个SupportClass1和一个SupportClass2。当我创建一个SupportClass1实例时,我想通过引用对象window来调用MainWindow类中的方法DoSomething,但是我得到了错误消息NameError: name 'window'我可以在SupportClass2中创建一个方法并从MainWindow类调用它,所以我得到的印象是我没有正确地实例化MainWindow类</em
最近,我开始练习javascript/jQuery。我有一份课堂问卷。 constructor (json, container) { }
// Do something // A lot of stuff happens here
// HTML gets build in this method and ad