简体   繁体   English

如何重放chrome开发人员工具中的fetch

[英]how to replay a fetch in chrome developer tools

In chrome developer tools is very useful to "replay xhr" for a xhr request (network tab). 在chrome中,开发人员工具对于xhr请求(网络选项卡)的“重放xhr”非常有用。 I have started using fetch in my code, and chrome developer tools do not allow to "replay" a fetch request, how is can it be? 我已经开始在我的代码中使用fetch ,并且chrome开发人员工具不允许“重放”获取请求,它怎么可能? Am I doing something wrong? 难道我做错了什么?

Well, seems it's not supported yet. 好吧,似乎还没有支持。 It's a real disappointment because "replay" is just too useful to stop using it. 这真是令人失望,因为“重播”对于停止使用它来说太有用了。

So I followed @wOxxOm advice and I just created a promised version of the standard xhr: https://github.com/max-favilli/helper-xhr 所以我遵循了@wOxxOm的建议,我刚刚创建了一个承诺版本的标准xhr: https//github.com/max-favilli/helper-xhr

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM