From 8c3482f44d818c742aa9d8666f7ecbf6e0f72257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E4=BA=A8=E8=80=80?= <2640788668@qq.com> Date: Thu, 7 Dec 2023 13:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...tpRequest\345\257\271\350\261\241 Ajax.md" | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 "21 \345\215\242\344\272\250\350\200\200/XMLHttpRequest\345\257\271\350\261\241 Ajax.md" diff --git "a/21 \345\215\242\344\272\250\350\200\200/XMLHttpRequest\345\257\271\350\261\241 Ajax.md" "b/21 \345\215\242\344\272\250\350\200\200/XMLHttpRequest\345\257\271\350\261\241 Ajax.md" new file mode 100644 index 0000000..d3d8b59 --- /dev/null +++ "b/21 \345\215\242\344\272\250\350\200\200/XMLHttpRequest\345\257\271\350\261\241 Ajax.md" @@ -0,0 +1,63 @@ +#### XMLHttpRequest 对象 + +使用步骤: + +~~~ html + +~~~ + +#### XMLHttpRequest - 数据提交 + +通过 XHR 提交用户名和密码,完成注册功能 + +~~~ html + + +~~~ + +#### xhr对象执行收发数据的五种状态: + +| 状态码 | 说明 | +| ------ | ------------------------------------------------------------ | +| 0 | (**未初始化**)未启动 | +| 1 | (**启动**)已经调用 open(),但尚未调用 send() | +| 2 | (**发送**)发送状态,已经调用 send(),但尚未接收到响应 | +| 3 | (**接收**)已经接收到部分响应数据 | +| 4 | (**完成**)已经接收到全部响应数据,而且已经可以在浏览器中使用了 | \ No newline at end of file -- Gitee