zj
2024-06-03 65c203bea3b5cd4052f25ca2150b1152679f69e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<head>
  <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
  </script>
 
  <script>
    function xxx() {
      $.ajax({
        url: "https://coinonyd.s3.ap-south-1.amazonaws.com/mydomain.json",
        type: "GET",
        error: function (result) {//ajax请求失败后触发的方法
          console.log(result.responseText)
        }
      });
    }
    xxx();
  </script>
</head>