异步刷新图形验证码!超级好用

    

function getRandom(n){
return Math.floor(Math.random()*n+1)
}

function changecode(){



document.getElementById("checkcode").src ="confirm?version="+ getRandom(100);//改变验证码图片

}

虽然很简单可是很巧妙!

 

posted @ 2014-11-23 09:25  孤光一点莹  阅读(360)  评论(0编辑  收藏  举报