How to force an XMLHttpRequest to respond with an error?

后端 未结 0 959
盖世英雄少女心
盖世英雄少女心 2021-02-11 10:20

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 {
           


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