gpt4 book ai didi

JQuery 1.10.2 数据表 makeEditable() 不是函数

转载 作者:行者123 更新时间:2023-12-01 01:23:27 26 4
gpt4 key购买 nike

我的问题与已解决的问题相同here

但是如果我们使用的话它是有效的1.jquery1.7.2.js

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

3.jquery.jeditable.js(1.7.3)

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

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

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

3.jquery.jeditable.js(1.7.3)

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

<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( {

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

我面临着同样的问题,并且这个解决方案非常有效。

关于JQuery 1.10.2 数据表 makeEditable() 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24466506/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com