zoukankan      html  css  js  c++  java
  • node --express处理get和post

    <!DOCTYPE html>
    <html lang="en">
    <head>
        
        
        
        <meta charset="UTF-8">
        <title>Document</title>
    </head>
    
    </html><!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style>        
        </style>
    </head>
    <body>
    <form action="http://localhost:3000/login" method="get">
        用户名:<input type="text" name="username"><br>
         密码 :<input type="text" name="password"><br>
         <input type="submit" value="提交"></input>
    </form>
    </body>
    </html>

    创建public文件夹放入html文件

    <!DOCTYPE html>
    <html lang="en">
    <head>
        
        
        
        <meta charset="UTF-8">
        <title>Document</title>
    </head>
    
    </html><!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style>        
        </style>
    </head>
    <body>
    <form action="http://localhost:3000/login" method="get">
        用户名:<input type="text" name="username"><br>
         密码 :<input type="text" name="password"><br>
         <input type="submit" value="提交"></input>
    </form>
    </body>
    </html>
    <!DOCTYPE html>
    <html lang="en">
    <head>
        
        
        
        <meta charset="UTF-8">
        <title>Document</title>
    </head>

    </html><!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style>     
        </style>
    </head>
    <body>
    <form action="http://localhost:3000/login" method="get">
        用户名:<input type="text" name="username"><br>
         密码 :<input type="text" name="password"><br>
         <input type="submit" value="提交"></input>
    </form>
    </body>
    </html>
  • 相关阅读:
    AS400一些有用的命令
    Publish的时候某些需要用到的文件没deploy上去
    DB2一些SQL的用法
    根据PostgreSQL 系统表查出字段描述
    linux memcached 安装
    CentOS下XEN虚拟服务器安装配置
    Apache the requested operation has failed
    PHP配置兼容ZendDebugger和Optimizer
    虚拟机比较
    memcache 运行情况,内存使用
  • 原文地址:https://www.cnblogs.com/hack-ing/p/12112517.html
Copyright © 2011-2022 走看看