我将图像路径的值从文本框扔到boxvalue,并想要使用javascript验证图像是否存在.
var boxvalue = $('#UrlQueueBox').val();
Run Code Online (Sandbox Code Playgroud)
我浏览了stackoverflow并找到了下面的图像宽度/高度,但不想使用它.
var img = document.getElementById('imageid');
Run Code Online (Sandbox Code Playgroud)
我如何验证它是否真的是图像路径中的图像?
javascript ×1