异步刷新图形验证码!超级好用
function getRandom(n){
return Math.floor(Math.random()*n+1)
}
function changecode(){
document.getElementById("checkcode").src ="confirm?version="+ getRandom(100);//改变验证码图片
}
虽然很简单可是很巧妙!