摘要:
一段很简单的JavaScript代码:var inputValue = $('txtUserName').value.trim();var UserName=document.getElementById("txtUserName").value;注意:'txtUserName'如下<input type="text" name="txtUserName" maxlength="20" style="height: 18px; width: 125px" o 阅读全文