Home  >  Article  >  Backend Development  >  不太熟悉PHP编程,为什么总报缺少‘)’异常

不太熟悉PHP编程,为什么总报缺少‘)’异常

WBOY
WBOYOriginal
2016-06-13 12:41:071044browse

不太熟悉PHP编程,为什么总报缺少‘)’错误?
劳大家帮我看看,为什么总是报if(form1.2_ytbyx.value==""){错误,说缺少‘(’?万分感谢!

            <input type="button" name="Submit" value="提交" onClick="process() "></td><br />
      <script>	<br />
				function process(){<br />
      				<br />
				//alert("开始检验!");<br />
					if(form1.2_ytbyx.value==""){<br />
						alert("您所输入的分值不能为空!");<br />
						form1.2_ytbyx.select();<br />
					}else if(checkscore20(form1.2_ytbyx.value)!=true){<br />
						alert("您输入的分值不正确!当前分值不应超过20分!");<br />
						form1.2_ytbyx.select();<br />
						return(false);<br />
						}else{	<br />
						var ytbyx = parseInt(document.getElementById("2_ytbyx").value);<br />
						//alert("您输入的数值通过检验!请确认!");<br />
					}<br />

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