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>
  • 相关阅读:
    Windows解决端口占用
    Oracle数字格式化
    Windows生成项目目录结构
    IDEA激活教程
    Windows搭建SMB服务
    在右键新建菜单中添加新项目
    Fastjson1.2.47反序列化+环境搭建+漏洞复现
    nmap常用命令及端口
    Shiro反序列化复现
    CVE-2020-0796漏洞复现
  • 原文地址:https://www.cnblogs.com/hack-ing/p/12112517.html
Copyright © 2011-2022 走看看