都改成这样 document.getElementByName("user").value; ------解决方案-------------------- function CheckPost(myform) { if (myform.user.value=="") { alert(“请填写用户”); myform.user.focus(); return false; } if (myform.title.value.length{ alert("标题不能少于5个字符"); myform.title.focus(); return false ; } }
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn