あれ?jQueryのsortable()が動かない

“Uncaught TypeError: $(…).sortable is not a function”
sortable()メソッドが見つからないと言われ動いてくれない。

slim版をやめて、integrityパラメータを削除したら動いてくれた。

■変更前

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>

■変更後

<script src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script>

返信を残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です