How to force an XMLHttpRequest to respond with an error?

后端 未结 0 397
梦如初夏
梦如初夏 2021-02-11 09:55

Say I want to simulate an error in the network on specific URLs, I am starting like this:

let intercepts = {}
let hasStubbedRequests = false

class Intercept {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题