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

function changecode(){



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

}

虽然很简单可是很巧妙!

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-28
  • 2021-11-27
  • 2021-12-30
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
相关资源
相似解决方案