See the Pen Sinon Tutorial: JavaScript Testing with Mocks, Spies & Stubs. 这里,我们将ajax函数替换成了stub。这意味着请求不会被发送,我们不 ...
確定! 回上一頁