jq调取非本地json数据

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>
<script>
    $(function(){
        $.ajax({
            async : true,
            url : "http://www.luweijie.club/tmxk",
            type : "GET",
            dataType : "jsonp",
            jsonpCallback: 'successCallback',
            success: function(response){
                console.log(response);
            }
        });
    });
</script>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/weixin_42413689/article/details/81710567
今日推荐