摘要: FormData 使用Ajax提交表单 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>FormData</title> </head> <body> <form id="login" action="https://www.i 阅读全文
posted @ 2023-03-29 16:50 漁夫 阅读(7) 评论(0) 推荐(0)
摘要: XHR的属性 responseType和response属性 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>responseType和response属性</title> </head> <body> <script> //1 阅读全文
posted @ 2023-03-29 16:46 漁夫 阅读(372) 评论(0) 推荐(0)
摘要: 初识跨域 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>初始跨域</title> </head> <body> <script> //1.跨域是什么 //同域,不是跨域 //const url = './index.html' 阅读全文
posted @ 2023-03-29 15:49 漁夫 阅读(17) 评论(0) 推荐(0)
摘要: 初识JSON 1.JSON是什么 Ajax 发送和接收书数据的一种格式 XML username=alex&age=18 JSON Json 全称是JavaScript Object Notation 2.为什么需要JSON JSON有3中形式,每种形式的写法都和JS中的数据类型很像,可以很轻松的和 阅读全文
posted @ 2023-03-29 10:57 漁夫 阅读(454) 评论(0) 推荐(0)