Image ping: The image can be loaded from any URL, so setting the src of img to the URL of other domains can achieve a simple cross-domain. You can use onload and onerror events to determine whether the response has been received.
var img=new Image();img.onload=img.onerror=function(){alert('done');}var getBody=document.getElementByTagName('body')[0];getBody.appendChild(img);The above method of obtaining pictures from the outside of js is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.