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
提交
取消