<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ***# JavaScript生成驗證碼功能*** ~~~ <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript"> //定義了一個數組,驗證碼產生來源的源頭是一個數組 var codes=[1,2,3,4,5,6,7,8,9,0, "a","b","c","d","趙","錢","孫","李"]; //內置對象 Math // document.write(Math.random()); // // document.write("<hr>"); //產生隨機數的方法Math.random() //產生一定的范圍 限制了 產生的范圍 //Math.random()*value,這個隨機數0<=隨機數<value // var index=Math.random()*codes.length; // document.write(index); // //parseInt() Number() Math.floor() // document.write("<hr>"); // index=Math.floor(index); // document.write(index); function createCode() { var codeval=""; //產生4位的驗證碼 for(var i=0;i<4;i++) { var index=Math.floor(Math.random()*codes.length); codeval+="<i>"+codes[index]+"</i>"; } // document.write("驗證碼為:"+codeval); var codeObj=document.getElementById("codemsg"); codeObj.style.backgroundColor="#fff"; codeObj.innerHTML=codeval; } function init_page() { createCode(); } </script> </head> <body onload="init_page()"> <span id="codemsg" onclick="createCode()"></span> </body> </html> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看