Ajax学习
ajax原生ajaxget请求post请求处理json格式数据其他参数其他方式使用ajaxjqueryaxiosfetch
原生ajax
get请求
const xhr = new XMLHttpRequest();
//发送参数
xhr.open("GET","http://localhost:8080/server?id=1");
xhr.send();
xhr.onreadystatechange = function(){
//readyState
原创
2021-03-29 11:30:18 ·
77 阅读 ·
0 评论