徐驰

导航

2013年8月7日 #

js生成验证码并检验

摘要: 验证码js代码varcode;//在全局定义验证码 //产生验证码 window.onload=functioncreateCode(){code="";varcodeLength=4;//验证码的长度 varcheckCode=document.getElementById("code");varrandom=newArray(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H' 阅读全文

posted @ 2013-08-07 11:07 徐驰 阅读(359) 评论(0) 推荐(0) 编辑