first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<!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">
<title>Document</title>
</head>
<body>
<ul></ul>
</body>
<!-- <script>
function callback(res) {
console.log(res);
}
</script>
<script src="http://127.0.0.1/index.php?test=callback"></script> -->
<script>
// 1拿出手机
var ajax = new XMLHttpRequest()
// 2: 输入号码
ajax.open("POST", "http://127.0.0.1/index.php")
// 3拨号
ajax.send()
// 4状态监听
ajax.onreadystatechange = function () {
if (ajax.readyState == 4) {
if (ajax.status == 200) {
console.log(ajax);
console.log(ajax.responseText);
} else {
console.log("抱歉,无法请求");
}
}
}
</script>
</html>