JQuery 1.10.2可数据化makeEditable()不是一个函数 [英] JQuery 1.10.2 Datatable makeEditable() is Not a function

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

问题描述

我的问题与此处相同

但是它正在工作,如果我们使用
1.jquery1.7.2.js

But It was working, if we use 1.jquery1.7.2.js

2.jquery.dataTables .min.js(1.7.2)

2.jquery.dataTables.min.js(1.7.2)

3.jquery.jeditable.js(1.7.3)

3.jquery.jeditable.js(1.7.3)

4.jquery.dataTables.editable.js(2.3.3)

4.jquery.dataTables.editable.js(2.3.3)

但是目前我正在使用
1.jquery1.10.2.js

But currently I am using 1.jquery1.10.2.js

2.jquery.dataTables.min.js(1.10.2)

2.jquery.dataTables.min.js(1.10.2)

3.jquery.jeditable.js(1.7。 3)

3.jquery.jeditable.js(1.7.3)

4.jquery.dataTables.editable.js(2.3.3)
抛出错误table.makeEditable()不是一个函数。
我没有发现错误在哪里?
请帮我感谢提前。

4.jquery.dataTables.editable.js(2.3.3) It throwing error table.makeEditable() is not a function. I did not found where is the Mistake is? Please Help Me. Thanks In Advance.

<html>


<head>
    <link href="/JqueryDatatable/css/dataTables.jqueryui.css" type="text/css" rel="stylesheet"/>
    <link href="/JqueryDatatable/css/jquery-ui.css" type="text/css" rel="stylesheet"/>
    <link href="/JqueryDatatable/css/jquery.dataTables.css" type="text/css" rel="stylesheet"/>

    <script type="text/javascript" src="/JqueryDatatable/js/jquery-1.10.2.js" ></script>
       <script type="text/javascript" src="/JqueryDatatable/js/jquery.dataTables.js" ></script>
    <script type="text/javascript" src="/JqueryDatatable/js/jquery.jeditable.js" ></script>

   <script type="text/javascript" src="/JqueryDatatable/js/jquery.dataTables.editable.js" ></script>

<script type="text/javascript">

$(document).ready(function() {


var table= $('#example').DataTable( {
      //  "sScrollY":        250

    } );
    // Apply the filter
   table.columns().eq( 0 ).each( function ( colIdx ) {
        $( 'input', table.column( colIdx ).header() ).on( 'keyup change', function () {
            table
                .column( colIdx )
                .search( this.value )
                .draw();
        } );
    } );

    //Making datatable as editable columns
    table.makeEditable();

} );


推荐答案

更改此

  var table= $('#example').DataTable( {

to

  var table= $('#example').dataTable( {

我面临同样的问题,这个解决方案运行良好。

Im facing same problem, and this solution worked perfectly.

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

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