1 <body>
 2    <button >点击</button>
 3 <script src="js/jquery.js"></script>
 4 <script>
 5     $(function () {
 6        $('#btn').click(function () {
 7            $.ajax({
 8                type: "get",
 9                url: "http://localhost:3000/",
10                dataType: 'jsonp',
11                jsonp: 'callback',//
12                jsonpCallback: 'acb',//
13                success: function(data){
14                    console.log(data);
15                }
16            });
17        });
18     });
19 </script>
20 </body>

 

相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2021-08-10
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2021-08-27
  • 2021-10-02
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案