zoukankan      html  css  js  c++  java
  • 课程引言课后作业1

    1.网站系统开发需要掌握的技术。

      Java语言、环境配置、网页脚本语言、数据库、应用服务器。

    2.课堂测试源代码。

    复制代码
    <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
     
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="this is my page">
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <script type="text/javascript">
            function login(){
            var username=document.getElementById("username").value;
            var password=document.getElementById("password").value;
            if(username==""||username==null){
                document.getElementById("umess").innerHTML="username is null";
                return;
            }
            if(password==""||password==null){
                document.getElementById("pmess").innerHTML="password is null";
                return;
            }
            if(username=="admin"&&password=="admin"){
                alert(username+"success");
                window.open("loginsuccess.html");
            }else{
                alert("error");
            }
            }
            function exit(){
            window.close();
    }
    </script>
    </head>
    
    <body>
    <div>
    <form action="" method="post">
    <table border=1 align="center">
    <tr align="center"><td colspan="3">login</td></tr>
    <tr>
    <td>username:</td><td><input type="text" id="username" name="username"/></td><td id="umess"></td>
    </tr>
    <tr>
    <td>password:</td><td><input type="password" id="password" name="password"/></td><td id="pmess"></td>
    </tr>
    <tr align="center">
    <td colspan="3">
    <input type="button" value="login" onclick="login();"/>
    <input type="button" value="cancel" onclick="exit();"/>
    </td>
    </tr>
    </table>
    </form>
    </div>
    </body>
    </html>
    复制代码

    3.截图

  • 相关阅读:
    欠拟合、过拟合、偏差、方差
    softmax详解
    解决Windows 10笔记本接显示器分屏后没有声音的问题
    图像的表示与通道数问题
    从梯度下降到反向传播(附计算例子)
    NuGet的简单使用
    深度神经网络(DNN)是否模拟了人类大脑皮层结构?
    范数(norm) 几种范数的简单介绍
    js 页码分页的前端写法
    前端使用注意事项
  • 原文地址:https://www.cnblogs.com/a1264393659/p/6961860.html
Copyright © 2011-2022 走看看