function stops when fetch() fails

前端 未结 0 854
时光说笑
时光说笑 2021-02-02 09:19

so I have a normal thing you would do to find if a file exists and proceed accordingly:

let response = await fetch(url);
if         


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