<div class="codetitle"> <span><a style="CURSOR: pointer" data="71227" class="copybut" id="copybut71227" onclick="doCopy('code71227')"><u>複製程式碼</u></a></span>程式碼如下:</div> <div class="codebody" id="code71227"> <br>window var輸入=document.getElementsByTagName(“輸入”); <br> for (var i=0;i<inputs.length i> inputs[i].onkeyup =function(){ <br> /s $/g,""); <br> } ; <br> } <br> } <br><br></inputs.length> </div>