<script>
//function imgerror(img){
// img.src="/pic/nopic.gif";
//img.οnerrοr=null; //控制不要一直跳动
$(document).ready(function(){
$('img').each(function(){
var tt=$(this).attr('src');
//console.log(tt);
if(tt==""){
$(this).attr('src','/pic/nopic.gif');
}else{
$(this).error(function(){
$(this).attr('src','/pic/nopic.gif');
})
}
});
})
</script>