How can I test if a URL is a valid image (in javascript)?

后端 未结 2 2004
无人共我
无人共我 2021-01-05 19:49

When submitting a form, I want to make sure a field is a valid image URL.

I could make an AJAX endpoint on my server which CURLs the URL and parses the output with a

2条回答
提交回复
热议问题