我在我的JavaScript代码中有以下功能,当我运行它时显示以下错误Cannot read property 'toString' of undefined我正在开发SharePoint Web应用程序。 function startTest(quizID) {
currentQuizItem = quizList.getItemById(quizID);
var quiz
class Foo(protected[this] val s: Iterator[String]) {
def apply(it: Iterator[String]): Foo = new Foo(it ++ s)
}
class Bar(s: Iterator[String]) extends Foo(s) {
}
问:我怎样才能Bar.apply()返回一个new B