- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的问题与已解决的问题相同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/
我正在关注这个tutorial使用 MVC4 实现 JQuery 数据表中的单元格编辑。 所用插件的链接是: jQuery DataTables插件 v1.7.5.,包括可选的 DataTables用
我是数据表新手,我正在尝试使表可编辑,但我不断收到此错误: TypeError: $(...).dataTable(...).makeEditable is not a function 我的 jQu
angular.js:11594 TypeError: undefined is not a function at ini_table (http://localhost/ferpa-quiz-cl
我正在处理一个由 HTML 和 sAjaxSource 组成的数据表,然后应用 MakeEditable 对其进行编辑。但是遇到一个问题是加载数据表时显示错误(结果集中只有一行,所以不确定这是否可能是
我有一个表格如下: with(myTable) { enableCellEditing() columnResizePolicy = SmartResize.POLICY is
我的问题与已解决的问题相同here 但是如果我们使用的话它是有效的1.jquery1.7.2.js 2.jquery.dataTables.min.js(1.7.2) 3.jquery.jeditab
我是一名优秀的程序员,十分优秀!