如何从jsbin获取json数组?

时间:2019-06-23 04:05:15

标签: javascript jquery json api

我正在尝试从JSBIN获取JSON数组并尝试使用它,但是我无法访问该文件。

$(document).ready( function(){
    $.get("https://jsbin.com/nenuxef/1/edit?js", function(data) {
        $.each(data.data, function(){
            console.log(value);
        });
    });
});

显示错误

Access to XMLHttpRequest at 'https://jsbin.com/nenuxef/1/edit?js' from
origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' 
header is present on the requested resource.

0 个答案:

没有答案