DataTable makeEditable 不工作(不是函数),我的 JS 脚本兼容吗?

DataTable makeEditable is not working (not a function), are my JS scripts compatible?

我在尝试使我的数据表可编辑时遇到了很多问题,所以我想检查我的脚本是否兼容。

    <div th:replace="fragments/partial :: partialJs"></div>
<div th:replace="fragments/withEasy :: js"></div>


<script type="text/javascript"
    src="../../resources/js/jquery-1.11.3.min.js"
    th:src="@{/resources/js/jquery-1.11.3.min.js}"></script> 

    <script type="text/javascript" src="https://cdn.datatables.net/r/dt/jqc-1.11.3,dt-1.10.8/datatables.min.js" ></script>

<script type="text/javascript"
    src="../../resources/js/plugins/dataTables/jquery.dataTables.editable.js"
    th:src="@{/resources/js/plugins/dataTables/jquery.dataTables.editable.js}"></script> // ver 2.3.3.

<script type="text/javascript"
    src="../../resources/js/plugins/dataTables/jquery.dataTables.js"
    th:src="@{/resources/js/plugins/dataTables/jquery.dataTables.js}"></script> //ver 1.10.0

        <script type="text/javascript"
    src="../../resources/js/jquery.jeditable.js"
    th:src="@{/resources/js/jquery.jeditable.js}"></script>
    // Version 1.7.3


    <script type="text/javascript"
    src="../../resources/js/jquery.validate.min.js"
    th:src="@{/resources/js/jquery.validate.min.js}"></script> //v1.13.1

您正在加载 jQuery 两次,第二次来自 cdn.datatables.net。使用没有嵌入 jQuery 的 link,即 https://cdn.datatables.net/r/dt/dt-1.10.8/datatables.min.js

您还加载了两次 DataTables 脚本,第一次是从 cdn.datatables.net,然后是从本地 ../../resources/js/plugins/dataTables/jquery.dataTables.js。删除 ../../resources/js/plugins/dataTables/jquery.dataTables.js

Aslo jquery.jeditable.js 需要在 jquery.dataTables.editable.js 之前加载。