• 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>
  • 相关阅读:
    201141 live the lie until the lie becomes your life
    my php & mysql FAQ
    suger日料财务
    python 应用thrift thrift的监控fb303
    cherryPy学习
    my linux FAQ
    Javascript无阻塞加载方法
    设计模式学习笔记之组合模式模式
    【转】cookie
    C# 多线程
  • 原文地址:https://www.cnblogs.com/hack-ing/p/12112517.html
Copyright © 2020-2023  润新知