验证码要用到,总结如下:

    var vcodefunc=function(e){
e.preventDefault();
e.stopPropagation();
$(".code-pic img").attr("src","http://xxxxxx/xxxxx?random="+Math.random());
}
$(".code-pic").bind("click",vcodefunc);
$(".code-refresh").bind("click",vcodefunc);

Related Posts: jQuery-防止缓存-src尾部添加随机数示例 :