AJAX错误:在Access-Control-Allow-Origin标头中找不到

时间:2017-02-23 09:19:16

标签: javascript json

此程序与phonegap服务器运行良好,但无法与其他服务器或源代码运行,即(文件:/// C:/Users/samsung%20pc/Desktop/arts/www/index_1_2.html)

当我运行这个程序时,它给了我错误:

  1. 原始文件:在Access-Control-Allow-Origin标头中找不到。
  2. XMLHttpRequest:网络错误0x80700013,由于错误80700013无法完成操作。
  3. 这个程序有什么问题。任何建议都没问题。 这是我的代码:

    $(document).ready(function(){
    $.ajax({
        type: "GET",
        url: "http://api.wolframalpha.com/v1/spoken?i=meaning+of+google&appid=...",
        async: false,
        dataType: "text",
        success: function (data, textStatus, jqXHR) {document.write(data);},onerror:function(e){document.write(e);}});});
    

0 个答案:

没有答案