Ajax请求
<!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>
<script src="https://cdn.bootcdn.net/ajax/libs/qs/6.11.0/qs.js"></script>
</head>
<body>
<script>
// get无参
// // 1.创建Ajax实例
// let xhr = new XMLHttpRequest()
// // 2.打开连接
// xhr.open('get','http://121.xxx.0.35:8888/index/carousel/findAll')
// // 3.发送请求
// xhr.send()
// xhr.onreadystatechange = function () {
// if (xhr.readyState == 4 && xhr.status == 200) {
// console.log(JSON.parse(xhr.responseText));
// }
// }
// get有参,参数拼接到地址栏