在了解这篇之前,您的电脑环境一定要配置node的环境,使用node命令可以搭建一个简单的服务器。
这是登录页面
- 负责提交数据,实现get与post请求
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>get请求</h1>
<form action="http://localhost:3000/login" method="get">
用户名:<input type="text" name="username"><br>
密码:<input type="password" name="password"><br>
<input type="submit" value="提交"</