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>
  • 相关阅读:
    php 获取当前目录和当前文件夹
    学习笔记12(选做)
    学习笔记11
    OpenEuler 中C与汇编的混合编程
    OpenEuler中C语言中的函数调用测试
    学习笔记10
    电子公文传输系统验收3开发环境
    电子公文传输系统验收2功能测试
    socket编程
    socket课堂
  • 原文地址:https://www.cnblogs.com/hack-ing/p/12112517.html
Copyright © 2011-2022 走看看