我有一个用 mirajeJs 创建的假服务器。我所有的请求都试图联系他,我怎么能只在我需要的时候才请求mirajeJs,而把其余的请求发送到真实服务器
最佳答案
您可以使用直通:
createServer({
routes() {
// Allow unhandled requests on the current domain to pass through
this.passthrough()
},
})
关于javascript - 如何仅在我需要时向 MirajeJS js 发出请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67268380/