81,095
社区成员
发帖
与我相关
我的任务
分享
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册验证</title>
</head>
<script type="text/javascript">
function check(){
//省略
return true;
};
</script>
<body>
<form action="recheck.jsp" method="post" onSubmit="return check();">
<!--onSubmit="return check()"这里在Eclipse报了个错误:
Cannot return from outside a function or method.
可是我这函数明明就在本文件的script里的,而我在DreamDreamweaver里却没有报错误 -->
<!-- 省略中间代码 -->
<input type="submit" value="注册"/>
</form>
</body>
</html>