0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

DataTablesが日本語化されない時の対処法

Posted at

結論からお伝えするとhttpからhttpsに変更するだけです。多分下記のような感じでScriptを書いていると思います。

<script>
    jQuery(function($){
        $.extend( $.fn.dataTable.defaults, {
            language: { url: "http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Japanese.json" }
        });

        $("#foo-table").DataTable();
    });
</script>

その中のurlのhttpをhttpsに変えるだけで機能すると思います。下記のような感じ。

<script>
    jQuery(function($){
        $.extend( $.fn.dataTable.defaults, {
            language: { url: "https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Japanese.json" }
        });

        $("#foo-table").DataTable();
    });
</script>

参考の一つとなれば幸いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?