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>
相关推荐
Guanjs0 2020-11-09
wmsjlihuan 2020-09-15
shishengsoft 2020-09-15
poplpsure 2020-08-17
CyborgLin 2020-08-15
Richardxx 2020-07-26
sunnyhappy0 2020-07-26
knightwatch 2020-07-19
wcqwcq 2020-07-04
chichichi0 2020-06-16
YAruli 2020-06-13
JF0 2020-06-13
84423067 2020-06-12
心丨悦 2020-06-11
zkwgpp 2020-06-04
stoneechogx 2020-06-04
litterfrog 2020-05-30
today0 2020-05-26