XMLHttpRequest is deprecated. What to use instead?

前端 未结 3 696
没有蜡笔的小新
没有蜡笔的小新 2021-02-08 18:14

Trying to use a pure JS approach to check if I have a valid JS image url. I am getting a warning that XMLHttpRequest is deprecated. What is a better way to do this?

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-08 18:31

    The warning is probably because you are tyring to do a synchronous request.

提交回复
热议问题