Files
ClassContent/历届学生/吴欣阳/每天课程/2021-06-23/index.html
2024-09-27 02:06:13 +08:00

47 lines
937 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<ul>
</ul>
</body>
<script>
// function geData(res) {
// console.log(res)
// }
</script>
<!--<script src="http://127.0.0.1/list.php?name=geData"></script>-->
<script>
// // 1拿出手机
// var http = new XMLHttpRequest() // xhr
//
// // 2设置拨号方式和手机号码
// http.open("GET","http://127.0.0.1/list.php");
//
// // 3拨号
// http.send()
//
// // 4拨号的状态监听
// http.onreadystatechange = function () {
//
// if (http.readyState == 4) {
// if (http.status == 200) {
// var data = JSON.parse(http.response);
//
// data.result.forEach(v=> {
// document.querySelector("ul").innerHTML += `<li>${v.title}</li>`
// })
// } else {
// console.log("请求错误")
// }
// }
// }
</script>
</html>