收到错误:GET https://www.gstatic.com/charts/elements/loader.js net :: ERR_ABORTED 404

时间:2020-06-12 06:06:31

标签: javascript jquery

我的代码是:我收到错误GET enter image description here net :: ERR_ABORTED404。请帮我解决这个问题

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/0.71/jquery.csv-0.71.min.js"></script>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script>
// Load the Google Transliterate API
google.charts.load("elements", "1", {
    packages: "transliteration"
});
function onLoad()
{
    var options = {
        sourceLanguage: 'en',
        // destinationLanguage: ['hi', 'bn', 'kn', 'ml', 'mr', 'ne', 'or', 'fa', 'pa', 'sa', 'ta', 'te', 'ur'],
        destinationLanguage: ['hi', 'mr', 'bn', 'gu', 'pa', 'ur'],
        shortcutKey: 'ctrl+g',
        transliterationEnabled: false
    };
    // Create an instance on TransliterationControl with the required
    // options.
    var control = new google.elements.transliteration.TransliterationControl(options);

    // Enable transliteration in the textfields with the given ids.
    // show control on multiple input
    //var ids = [ "transl1", "ad_matter" ];
    var ids = ["editordiv"];
    control.makeTransliteratable(ids);
    // Show the transliteration control which can be used to toggle between
    // English and Hindi and also choose other destination language.
    control.showControl('translControl');
    //  control.c.qc.t13n.c[3].c.d.keyup[0].ia.F.p = 'https://www.google.com';
}

google.charts.setOnLoadCallback(onLoad);
 </script>

1 个答案:

答案 0 :(得分:0)

请查看404 status code是什么。您使用的链接无效或不正确。

您可能正在寻找https://www.gstatic.com/charts/loader.js吗?来自Google图表指南的this页?