32 Star 117 Fork 21

drinkjava2 / MyServerless

Gitee — Enterprise-level DevOps R&D management platform
Join Gitee
Clone or download
demo3.html 1.38 KB
Copy Edit Web IDE Raw Blame History
drinkjava2 authored 2021-07-17 23:04 . v3.0 release, Add api export
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.msg { width: 80%; padding: 8px; margin-bottom: 20px;}
.normalMsg {background: #dfb}
.errorMsg {background: #ffbeb8}
</style>
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/jquery-ajax-ext.js"></script>
<script src="/js/myserverless-3.0.js"></script>
<script src="/js/demo3.js"></script>
</head>
<body>
<script>document.write($java(`return new WebBox("/WEB-INF/menu.html");`));</script>
<script>
document.write($java(`
try {
response.getWriter().println("<h2>Form input validation demo</h2>");
response.getWriter().flush();
} catch (Exception e) {
}
return NONE;
`));
</script>
<div id="msg" class="msg"></div>
<br />
<form id="form1" name="form1" onsubmit="return false" action="##" method="post">
User Name:<br /><input type="text" name="username" value="" /><br />
Identity:<br /> <input type="text" name="identity" value="" /><br />
Phone Number: <br /><input type="text" name="phoneNumber" value="" /><br />
Password: <br /><input type="text" name="password" value="" /><br /><br />
<!-- 注意postDemo3Form方法位于单独的demo3.js文件里 -->
<button name="Submit" value="true" onclick="postDemo3Form()">Submit</button>
</form>
<p id="Users"> </p>
</body>
</html>

Comment ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/drinkjava2/myserverless.git
git@gitee.com:drinkjava2/myserverless.git
drinkjava2
myserverless
MyServerless
master

Search

122604 9befe709 551147 122411 94cd1624 551147