jQuery dataTables makeEditable()不是一个函数 [英] jQuery dataTables makeEditable() is not a function

查看:120
本文介绍了jQuery dataTables makeEditable()不是一个函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的Datatables,我正在努力使表格可以编辑,但是我不断得到这个错误:

I'm new to Datatables and I'm trying to make the table editable, but I keep getting this error:


TypeError :$(...)。dataTable(...)。makeEditable不是一个函数

TypeError: $(...).dataTable(...).makeEditable is not a function

我的jQuery脚本如下所示:

My jQuery script looks like this:

    $(document).ready( function () {
    var oTable = $('#data_table_wrapper').dataTable({
        "sDom": 'R<"H"lfr>t<"F"ip<',
        "bJQueryUI": true,
        "sPaginationType": "full_numbers",
        "aoColumn": [
                { "bVisible": true },
                { "bVisible": true },
                { "bSortable": false },
                    ]       
    }).makeEditable({
        sUpdateURL: "/abc.php"
    });
});

我包含这些文件:

jquery-1.9.1.min.js
jquery.dataTables.min.js
jquery.jeditable.js
jquery.dataTables.editable.js
jquery-ui.js
jquery.validate.js

所有链接到这些文件正常工作。
任何人都可以给我一些建议吗?为什么我不断得到这个错误?

All links to these files work correctly. Can anyone give me some advice, please? Why do I keep getting that error?

推荐答案

进口必须按照一定的顺序:

The imports have to be in certain order:


jquery.min.js

jquery.min.js

jquery-ui.min.js

jquery-ui.min.js

jquery.dataTables.min.js

jquery.dataTables.min.js

jquery.jeditable.js

jquery.jeditable.js

jquery。 dataTables.editable.js

jquery.dataTables.editable.js

jquery.validate.js

jquery.validate.js

修复后这个,更新到最新版本解决了问题!

After fixing this, update to latest versions fixed the problem!

这篇关于jQuery dataTables makeEditable()不是一个函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆