var block = new courseBlock(); });}如您所见,我正在尝试用页面上的courseBlocks填充对象的courseBlocks数组。然而,在each()循环中,'this‘指的是我当前添加的课程块,而不是courseOversight对象。如何在不使用现在不可用的‘courseOversights
function() { //this is set to the global objecttest();为了在test中访问Foo,有必要在方法内部创建一个引用Foo的局部变量: var that = this; //Use that instead of this据我所知,如果在全局作用域中调用,this指的是全局对象</e