jQuery Datatable:makeEditable不是函数错误
这是我拥有的代码,但是在萤火虫上显示$("#updateTable").dataTable({bServerSide: true, sAjaxSource: "UpdateTS", bProcessing: true, aoColumns: [{sName: "ID"}, {sName: "Result"}]}).makeEditable is not a function
This is the code I have, but it errors on firebug saying $("#updateTable").dataTable({bServerSide: true, sAjaxSource: "UpdateTS", bProcessing: true, aoColumns: [{sName: "ID"}, {sName: "Result"}]}).makeEditable is not a function
<link href="../../Content/CSS/demo_table_jui.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jQuery-1.4.4.min.js" type="text/javascript"></script>
<script src="../../Scripts/jQuery.dataTables.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.jeditable.js" type="text/javascript" />
<script src="../../Scripts/jquery.dataTables.editable.js" type="text/javascript" />
<script src="../../Scripts/jquery-ui.js" type="text/javascript" />
<script src="../../Scripts/jquery.validate.js" type="text/javascript" ></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$('#updateTable').dataTable({
"bServerSide": true,
"sAjaxSource": "UpdateTS",
"bProcessing": true,
"aoColumns": [
{ "sName": "ID" },
{ "sName": "Result" }
]
}).makeEditable();
});
</script>
此错误导致数据表不可编辑.我不是在使用可编辑插件吗?
This error is causing the datatable not editable. Am I not using editable plug-in right?
The makeEditable function is defined in the plug-in ../../Scripts/jquery.dataTables.editable.js
您是否尝试过将该库的脚本包含更改为:
Have you tried changing your script include for that library to:
<script src="../../Scripts/jquery.dataTables.editable.js" type="text/javascript" ></script>
代替
<script src="../../Scripts/jquery.dataTables.editable.js" type="text/javascript" />
您正在使用的其他一些库似乎也有同样的问题.
It looks like a few other libraries you are using might have this same issue.