function checkImage(path){ var img = $(“<img src=’”+path+”’>”); if(img[0].height > 0 && img[0].weight > 0){ return true; }else{ return false; } }
js中判断图片存不存在
原文:https://www.cnblogs.com/tanhao1410/p/11943248.html