<br>使用方法 <br><script> <BR>function aaa() <BR>{ <BR>var s=document.getElementById("文本框ID").value; <BR>alert(trim(s)); <BR>} <BR></script>