This should be specified as an object literal containing one or more methods.
这应该是一个包含一个或多个方法的对象。
The object literal stub applied to the constructor records it's interaction with the system under test via local variables url and callback.
通过本地变量url和callback,应用于构造函数的object literal stub能够记录它与被测系统的交互行为。
Note that an assignment statement which is assigning a function literal or object literal is still an assignment statement and must end with a semicolon.
注意一个函数赋值或对象赋值语句也是赋值语句,应该以分号结尾。
应用推荐