首页 > 其他 > 详细

node --express处理get和post

时间:2019-12-28 19:40:27      阅读:77      评论:0      收藏:0      [点我收藏+]
<!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>

node --express处理get和post

原文:https://www.cnblogs.com/hack-ing/p/12112517.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!