通过js的形式实现验证码function validate () { var inputCode = document.getElementById("input1").value; inputCode=inputCode.toUpperCase(); if(inputCode.length