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>
  • 相关阅读:
    react-webpack-express
    React总结和遇到的坑
    vue+node+mongodb实现的功能
    webpack整体了解
    webpack踩坑
    深入了解MongoDB
    实现pdf word在线浏览和下载
    node实现爬虫
    火客声音分析
    抖音二婷衣橱分析
  • 原文地址:https://www.cnblogs.com/hack-ing/p/12112517.html
Copyright © 2011-2022 走看看