这次我们使用 sinon.assert.calledWith() 断言。我们将stub传递进去,因为我们想确定stub包含了正确的参数。 使用sinon,还有其它的方法来测试ajax请求 ...
確定! 回上一頁