猿问

七牛接口跨域

XMLHttpRequest cannot load http://api.qiniu.com/status/g... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.1.54:8080' is therefore not allowed access.

$.ajax({

    url:'http://api.qiniu.com/status/get/prefop?id=z0.5923a37345a2650c9977c17e',    type:"GET",
    dataType:"json",
    success:function(data){
        console.log(data)
    }
});


有只小跳蛙
浏览 1299回答 1
1回答

慕桂英3389331

dataType: 'jsonp'jquery jsonp跨域
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答