图片出错再加载jsvar imgpic.find(img)img.attr(src,http://pic1)img.bind(error,function(){i
图片出错再加载js
var img=pic.find("img");img.attr("src","http://pic1");img.bind("error",function(){img.unbind("error");//防止死循环img.attr("src","http://pic2");}); 图片出错再加载js
var img=pic.find("img");img.attr("src","http://pic1");img.bind("error",function(){img.unbind("error");//防止死循环img.attr("src","http://pic2");});