HTML格式
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container {
padding: 15px;
background-color: bisque;
}
.bg-danger {
background-color: burlywood;
}
.bg-success {
background-color: chartreuse;
}
</style>
</head>
<body>
<div class="container">
<div class="form-group">
<label for="">邮箱地址:</label>
<input type="email" name="" id="email" class="form-control" placeholder="请输入邮箱地址">
</div>
<p id="info"></p>
</div>
<script src="./ajax.js"></script>
<script>
//获取元素
var emailInp = document.getElement