Cannot return from outside a function or method. 为什么会报这个错误?下面是一部分代码<form name="aaa" action="registing.do" method="post" onsubmit="return check();"></body><Script type="text/javascript"> function check() { if(document.aaa.password1.value != document.aaa.password2.value) { alert("警告!密码与确认密码不一致"); return false; } return true; } </Script></html>
添加回答
举报
0/150
提交
取消