标签:nlog 保存 utf-8 char password 输入 cli hello 提示框
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>时间</title> <script type="text/javascript" src="../static/js2.js"></script> </head> <body> <script> document.write(Date()) </script> <p></p> <button type="button" onclick=window.alert("用户名不能以数字开头")>登录</button> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>广州商学院</title> </head> <body> <p id="demo">Hello World!</p> <script> document.getElementById("demo").innerHTML=Date(); </script> <button type="button" onclick=window.alert("访问页面发生错误")>登录</button> </body> </body>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>login</title> <link href="../static/css/login.css" rel="stylesheet" type="text/css"> <script> function fnLogin() { var oUname = document.getElementById("uname") var oError = document.getElementById("error_box") var oUpass = document.getElementById("upass") if(oUname.value.length<6){ oError.innerHTML="用户名至少为6位" } if(oUname.value.length>20){ oError.innerHTML="用户名不得超过20位" } if(oUname.value.length>6&oUname.value.length<20&oUpass.value.length<6){ oError.innerHTML="密码至少为6位" } if(oUname.value.length>6&oUname.value.length<20&oUpass.value.length>20){ oError.innerHTML="密码不得超过20位" } } </script> </head> <body> <div class="flex-container"> <div class="box"> <div id="container" style="width: 400px"> <div id="header" style="background-color: pink"><h2 align="center" style="margin-bottom: 0;">Login</h2></div> <div id="content" style="background-color: hotpink;height: 150px;width: 400px;float: left;"align="center"> <div class="input_box">username:<input id=‘uname‘ type="text" placeholder="please input username"></div> <div class="input_box">password:<input id=‘upass‘ type="password" placeholder="please input password"></div><br> <div id="error_box"><br></div> <div class="input_box"> <div class="input_box"><button onclick="fnLogin()">login</button> <button onclick=window.alert("取消将不保存更改")>cancle</button></div> <div id="footer" style="background-color: pink;clear: both;text-align: center;"> duym</div> </div> <br> </div> </div> </body> </html>
标签:nlog 保存 utf-8 char password 输入 cli hello 提示框
原文地址:http://www.cnblogs.com/qq724852210/p/7745327.html