<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./jquery-3.6.1.min.js"></script>
<title>Document</title>
</head>
<body>
<div id="register">
<input type="text" id="username" placeholder="请输入用户名">
<input type="password"id="password"placeholder="请输入密码">
<input type="email" id="email" placeholder="请输入邮箱">
<button id="btn">注册</button>
</div>
<script>
$("#btn").click(function(){
$.ajax({
type:"post",
url:"http://localhost/php_server/php26/register.php",
data:{
username:$("#username").val(),
password:$("#password").val(),
email:$("#email").val(),
},
success:function(data){
console.log(JSON.parse(data));
},
error:function(err){
console.log(err);
}
})
})
</script>
</body>
</html>

老师我这个注册的时候为啥报错